26

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.

Yahel
  • 37,023
  • 22
  • 103
  • 153
Christoffer
  • 25,035
  • 18
  • 53
  • 77

1 Answers1

64

You would set your dimensions to:

ga:eventCategory, ga:eventAction, ga:eventLabel

And then you'd set your filter to:

ga:eventCategory==myEventCategory

j0nes
  • 8,041
  • 3
  • 37
  • 40
Yahel
  • 37,023
  • 22
  • 103
  • 153