Export my analytics data and put them in a database

只愿长相守 提交于 2020-07-20 03:42:39

问题


I am looking to export the analytics data towards a database sql. Do you know one tools who could help me?

Do you know how I can see on Google analytics the traffic resulting from a particular URL??

Thank you all!


回答1:


You have several options:

  • UI export: in the top/right corner of your reports you should have an option to download data in various formats (XLS, CSV...)
  • API: you can use the reporting API to get it out in a programmatic/automated way

One thing you won't be able to do with the free version no matter what you try:

  • Reconstruct the entire analytics data: whether with the UI or API, you're limited to querying only 7 dimensions maximum at a time (eg ga:country, ga:deviceCategory etc...), and cannot combine certain dimensions together (no official list available, it's trial and error to find out), whereas there are dozens of dimensions available.

So the question for you becomes:

  • How much resources do I want to invest into partially reverse-engineering Google Analytics vs. the value it brings me vs. what it would cost to get alternative analytics solutions?



回答2:


Exporting the analytics data is a thorny one.

My understanding is that paid GA usage allows the export of all collected GA data.

But free usage does not.

For free usage, all you are going to be able to do, realistically, is to create a report over your GA data (in Data Studio or Google Sheets) that contains the rows and columns you want, and then collect this information and squirt it into a SQL table. You are also liable to come up against sampling.

Re traffic from particular URL, the news is better: just filter on Hostname and Page.




回答3:


I found a cloud based solution which exports raw google analytics data to MySQL database. Setup is simple, all you need to do is add your Google Analytics connection and a database to which the data needs to be exported.

MySQL, PostgreSQL, SQL Server and BigQuery are the supported destinations. It creates a few custom dimensions in your Google Analytics account and Tag in Google Tag Manager to send hits to Google Analytics. Data is exported from Google Analytics to the selected destination every day.

I have been using it for last three months now. Hope this helps.



来源:https://stackoverflow.com/questions/50898678/export-my-analytics-data-and-put-them-in-a-database

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!