Join Crawl data with Google Analytics Data
1. Crawl data
library(Rcrawler)
Rcrawler(Website = "https://www.rforseo.com/")View(INDEX)
2. Google analytics data
3. Fuuuuu...sion!

Last updated
library(Rcrawler)
Rcrawler(Website = "https://www.rforseo.com/")View(INDEX)

Last updated
# Between 1 january and 1 feb 2021
# we want the sessions
# we request landing and medium info too
# and using the anti sampling option
ga <- google_analytics(ga_id,
date_range = c("2021-01-01", "2021-02-01"),
metrics = "sessions",
dimensions = c("medium","landingPagePath"),
anti_sample = TRUE)
# We filter the data to only keep the SEO sessions
ga_seo <- ga %>% filter(medium == "organic")INDEX$landingPagePath <- paste0("/",urltools::path(INDEX$Url))
INDEX$landingPagePath[INDEX$landingPagePath == "/NA"] <- "/"crawl_ga_merged <- merge(INDEX,ga_seo)View(crawl_ga_merged)