Data from Google Analytics

Thus, Google Analytics does not have an API that we can use to retrieve our data, so is there an effective way to programmatically retrieve data collected by Google without a local login?

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

+7
google analytics
source share
9 answers

In addition, I forgot about it: I never fully realized this for the client, because the deal failed ...

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

+4
source share

Google has just announced that they provide a data export API for Google Analytics . This is similar to what you are looking for.

In my ad, the feature is now in a private beta, but I believe that it will be deployed to all accounts in the coming weeks / months. Depending on your needs, you can just wait, instead of building a short-term hacker solution.

If you're interested, I suggest that the functionality will be deployed first for members of the Google Analytics Trusted Tester program .

+9
source share

The Google Analytics API is now open to everyone and looks like this: it contains a complete set of data

+2
source share

Well, it depends on what you want to do with the data. If you want to process part of it, then I do not think it is difficult.

Here is a basic hit search web search from Google and someone else: http://www.google.com/support/analytics/bin/answer.py?hl=en&answer=55561 http://blogoscoped.com/archive /2008-01-17-n73.html

+1
source share

There is a fully programmatic way to access data using greqo (PHP), but the analytics class is in beta. Check here .

If the beta is not acceptable, you can use a mixture of XML and Yahoo Pipes to get what you need.

Main method

Get tracking data in a usable format - we can plan Google Google Analytics will send this message as an XML file on a regular basis.

Make XML File Available Online - By email attachment to Google Groups, the file is automatically based on a public URL.

Design the URL of the latest report. Since Google groups provide RSS / Atom feeds for all posts, we can easily find the URL of the most recent post, and therefore the URL of the XML report.

Prepare data for use. We need to manipulate XML and massage it into a convenient JSON format, which we can use on our blog, which can be done using Yahoo Pipes.

Taken from here .

+1
source share

I implemented a solution in which we planned that an analytics report would be emailed to a gmail account every day, and I pulled out a report on request through POP3. It is quite lightweight and fast. I heard that Epic1 will do this for you too. I am studying it now.

+1
source share

If you use Python, Pandas io is also very useful. Pandas has an interface on top of the Google Analytics API. It's very easy to get up and work and integrate with Pandas to get aggregation, time series, and other data analysis library functions.

authentication instructions and example shows: http://blog.yhathq.com/posts/pandas-google-analytics.html

more examples: http://quantabee.wordpress.com/2012/12/17/google-analytics-pandas/

I also posted some requests to get started https://github.com/sk8asd123/ga_pandas

+1
source share

It has been a while since I was supposed to handle this, but Google Analytics has an XML output type, so you can parse this to get the data in your own system. However, I believe that there is no way to get the xml file programmatically, so someone else needs to log in and generate the file and submit it to your application.

Good question though, I would like to see if there is a 100% automatic solution.

0
source share

We just released a product - Megalytic - this makes it easy to create custom reports using data from the Google Analytics API. You can send these reports to other users without sharing your Google Analytics account. Also create links to reports, download them in PDF format, etc.

0
source share

All Articles