How to read events from Google Analytics API?
17,730
You would set your dimensions to:
ga:eventCategory, ga:eventAction, ga:eventLabel
And then you'd set your filter to:
ga:eventCategory==myEventCategory
Related videos on Youtube
Author by
Christoffer
Updated on June 22, 2022Comments
-
Christoffer almost 2 years
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.
-
brenjt over 12 yearsExactly what I needed to know. Thanks
-
user2636556 about 9 years@Yahel what about the metrics? leave it blank?
-
Gowtham almost 9 years@user2636556 It will not work if you leave it blank. Fill it with
ga:totalEvents
orga:uniqueEvents
. -
FlorianT. almost 8 yearsFor me [code]ga:eventCategory==myEventCategory[/code] does not work. It gives me: "Invalid dimension or metric"...
-
Alan almost 6 years@Mollo you could try test it here: ga-dev-tools.appspot.com/query-explorer