ga Flashcards

1
Q

ga: To fire an event on your page you must

A

call the ga() function and specify the arguments “send”, “event” (which is a hitType), followed by the mandatory category (general type of event e.g. click) and action (specific place it was clicked).
These must be listened for and set up on the GA website.as well.

ga(‘send’, ‘event’, [eventCategory], [eventAction])

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

ga: To add a ga event to an element that already has an onclick function, type

A

onclick=”oldFunction; ga(‘send’, ‘event’, [eventCategory], [eventAction]);”

How well did you know this?
1
Not at all
2
3
4
5
Perfectly