Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to read events from Google Analytics API?

How do I read custom events from the Google Analytics API (e.g. with the help of gapi.class.php)?

If I have three events (myEvent1, myEvent2 and myEvent3) and they all belong to eventCategory myEventCategory, how do I read that data?

I have been searching the API docs but found nothing on retrieving the results of event tracking.

like image 397
Christoffer Avatar asked Dec 03 '11 22:12

Christoffer


People also ask

Is Google Analytics reporting API free?

The Google Analytics API is free to use. You don't have to pay for using it. If you run out of quota you can request an increase on the 50000 requests a day.


1 Answers

You would set your dimensions to:

ga:eventCategory, ga:eventAction, ga:eventLabel

And then you'd set your filter to:

ga:eventCategory==myEventCategory

like image 199
Yahel Avatar answered Sep 27 '22 21:09

Yahel