Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Data from Google Analytics

So Google Analytics does not have an API that we can use to get our data, so is there an efficient way to programaticly fetch the data collected by Google, without logging it locally?

Edit: I would prefer a Python or PHP solution but anything will work.

like image 283
UnkwnTech Avatar asked Oct 08 '08 11:10

UnkwnTech


People also ask

What data can you get from Google Analytics?

Google Analytics can then generate customizable reports to track and visualize data such as the number of users, bounce rates, average session durations, sessions by channel, page views, goal completions and more. The page tag functions as a web bug or web beacon, to gather visitor information.

What is Google Analytics data?

Google Analytics is a platform that collects data from your websites and apps to create reports that provide insights into your business.

Can we extract data from Google Analytics?

How to export Google Analytics behavior report. It's very simple. Go to Behavior => Overview, click the “Export” button, and select the format for exporting your report (PDF, Google Sheets, Excel, CSV).


2 Answers

Google just announced that they're making available a data export API for Google Analytics. It sounds like that's exactly what you're looking for.

Per their announcement, the feature's currently in private beta, but I figure it'll be rolled out to all accounts in coming weeks/months. Depending on your needs, you may just want to wait, instead of building a short-term hackish solution.

If you're interested, I presume that the functionality's being rolled out first to members of the Google Analytics Trusted Tester program.

like image 141
Anirvan Avatar answered Oct 05 '22 14:10

Anirvan


Also, I forgot about this: I never actually completely implemented this for a client because the deal fell through...

But you can customize the dashboard to include the sections of Google Analytics that your report might need and have a scheduled email. If the reports do not need to be too detailed and if Google already aggregates the data in the way you need it, then this might work for you.

like image 25
Giovanni Galbo Avatar answered Oct 05 '22 16:10

Giovanni Galbo