Track SEO active pages percentage over time x
What are active pages? and Why would you want to track them?
An active page is a page which generates at least one SEO visit over a period. If a page has at least one visit it means that its indexed and 'Google" doesn't think it's a useless page. It is a good indicator of the SEO health of a website.
To make things even more interesting we will grab google search console data and compare them to the number of pages submitted in the XML sitemap file.
step 1: Counting active URLs using Search Console data
( see article about grabbing Search Console data)
library(searchConsoleR)
library(googleAuthR)
scr_auth()
# Load
sc_websites <- list_websites()
# and display the list
View(sc_websites)
# pitck the one
hostname <- "https://www.rforseo.com/"
require(lubridate)
# we want data between now and 2 months ago
now <- lubridate::today()-3
month(beforedate) <- month(now) - 2
day(beforedate) <- days_in_month(beforedate)
# we ask for data with dates and pages
gsc_all_queries <- search_analytics(hostname,
beforedate,now,
c("date", "page"), rowLimit = 80000)
Last updated
Was this helpful?