Loading Google Analytics 2 Years historical data via API using CC Rest connector

StackOverflow https://stackoverflow.com/questions/21595334

  •  07-10-2022
  •  | 
  •  

문제

I am wondering if there is a way to pull Google Analytics un-sampled historical data for 2 years via API using CC Rest connector component. Unfortunately the GA account is a standard and not a premium so I can not get around 500K limit.

It would be great if GoodData Developer team can share an ETL graph file to solve this request. It is a common use case per clients.

Thanks, Andy

도움이 되었습니까?

해결책

I have discovered this kind of solution.

Run the ga_00_master graph that will run multiple time the ga_01_sub graph. For each day you want to have the data it will send a request to Google Analytics and gives you a file with the data for that day.

There are few things to do

  • fill in GA_CONNECTION to sub graph
  • and link parameter file ga_params.prm
  • and parameters

for master graph:

GA_MIN_DATE = "yyyy-MM-dd"

for sub graph:

PROFILE_NUMBER
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top