简体   繁体   中英

how to store weekly data from google analytics

I have some simple weekly aggregates from Google analytics that i'd like to store somewhere. The reason for storing is because if I run a query against too much data in google analytics, it becomes sampled and I want it to be totally accurate.

What is the best way to solve this? My thoughts are: 1) Write a process in bigquery to append the data each week to a permanent dataset 2) Use an API that gets the data each week and stores the data in a google spreadsheet (appending a line each time)

What is the best recommendation for my problem - and how do I go about executing it?

Checking your previous questions, we see that you already use Bigquery.

When you run a query against the Google Analytics tables that is not sampled, as that has all the data in it. There is no need to store as you can query every time you need.

In case if you want to store, and pay for the addition table, you can go ahead store in a destination table.

If you want to access quickly, try creating a view.

I suggest the following:

1) make a roll-up table for your weekly data - you can do that either by writing a query for it and running manually or with a script in a Google Spreadsheet that uses the same query (using the API) and is scheduled to run every week. I tried a bunch of the tutorials out there and this one is the simplest to implement

2) depending on the data points you want, you can even use the Google Analytics API without having to go through BigQuery for this request, try pulling this report of yours from here . If it works there are a bunch of Google Sheets extensions that can make it a lot quicker to set up a weekly report. Or you can just code it yourself

Would that work for you?

thks!

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM