The analytics api allows you get events and total events across the profile, but I can’t work out how to get the total events of a particular event. For example:
- Event 1 has 10 total events and 3
unique events. - Event 2 has 5 total events and 5
unique events.
If I use ga:totalEvents, it will return 15 and ga:uniqueEvents will return 8. How can I filter it down to category (ie title… Event 1, Event 2 are “Categories”).
You need to add the
ga:eventActionand/orga:eventCategorydimensions to the request. This will give you a breakdown of thega:totalEventsandga:uniqueEventsmetrics for each action and category.