background preloader

Googleanalytics

Facebook Twitter

Statistiques

Google Analytics API class for PHP. About a month back, Google opened the Google Analytics API service to all Analytics users. the API allows developers to integrate the GA reports into their own applications or websites, or even access the reports from a phone! I’ve been thinking about how I can make use of this API to enhance the sites I’m working on. But before kicking off ideas, I had to find out how to access and use the API. I finally came up with a PHP class that will do all the grunt work of calling the API, you just need to supply your report’s parameter and the PHP class will return you an array of Analytics data. Ok, first thing’s first, you need to have Google Analytics (obviously) and login credentials to GA. Fun And Helpful Updates To The API. Recently, we released important updates to the Google Analytics Data Export API and our developer documentation.

Fun And Helpful Updates To The API

Here are some highlights. If you are pulling large amounts of historical data, we've increased the the total amount of data you can request from the API from 1,000 rows to a new the new maximum of 10,000 rows. This is a great feature to reduce the amount of work needed to pull large amounts of data from the API.The Data Export API uses dimensions and metrics and we've relaxed the restrictions on what combinations of these you can request.

For example, you can now request (D1. Visitor) and (D3. Tutoriel Google Analytics : présentation générale.