martar/ga-pages-pageviews-sync
The script connects to Google Anlytics, fetches the pageviews of the pages whose url matches regex provided in the config. URL must have at least two segments. ex. /question/[0-9]+; The script continues fetching until the last fetched item have less pageviews that configured threshold. The scripts outputs to the standard output, data in the format SECOND_SEGMENT_OF_THE_PAGEPATH, NUM_OF_PAGEVIEWS