Skip to content

Instantly share code, notes, and snippets.

@zazapeta
Last active May 11, 2021 14:37
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zazapeta/1bc5155e4ca407c62f8bb9c1496ac917 to your computer and use it in GitHub Desktop.
Save zazapeta/1bc5155e4ca407c62f8bb9c1496ac917 to your computer and use it in GitHub Desktop.
Google analytics events cheatsheet

This is a google analytics events cheatsheet.

Understanding deeply Events:

All actions are listed independently from their parent categories.

A unique event is determined by a unique action name.

  • E's Label : As with categories and actions, there is a report that shows all the labels you create. Think of a label as a way to create an additional reporting dimension for user interaction with page objects.

  • E's Value : Value differs from the other components in that it is an integer rather than string, so use it to assign a numerical value to a tracked page object. The value is interpreted as a number and the report adds the total values based on each event count (sum cross events). The report also determines the average value for the category.

A unique event is determined in part by a unique label name.

  • Advices :
  • Events Per Session Limit The first 10 event hits sent to Analytics are tracked immediately, thereafter tracking is rate limited to one event hit per second.

As the number of events in a session approaches the collection limit, additional events might not be tracked. For this reason, you should:

avoid scripting a video to send an event for every second played and other highly repetitive event triggers

avoid excessive mouse movement tracking

avoid time-lapse mechanisms that generate high event counts

  • You can use duplicate action names across categories, but this can affect how unique events are calculated.

  • You can use duplicate label names across categories and actions, but this can affect how unique events are calculated.

  • Action and Label best practices :

    • Action names should be relevant to your report data.

    • Use action names globally to either aggregate or distinguish user interaction

    • Unique events are incremented by unique actions. Any time a user interacts with an object tagged with a particular action name, the initial interaction is logged as one unique event for that action name. Any additional interaction with the same action trigger for that user's session will not contribute to the unique event calculation for that particular action. This is true even if the user leaves that object and begins to interact with another object tagged via the same action name.

This has two notable results in the reports. First, suppose a user interacts with the "Play" action from two unique video players tagged with separate categories. The Top Actions reports for "Play" will list one unique event even though the user engaged with two unique players. Secondly, each category's Action report will list one unique action, since there is indeed one unique event per category/action pair.


This has two notable results in the reports. First, suppose a user interacts with the "Play" action from two unique video players tagged with separate categories. The Top Actions reports for "Play" will list one unique event even though the user engaged with two unique players. Secondly, each category's Action report will list one unique action, since there is indeed one unique event per category/action pair.


Analytics increments the Unique Events metric by 1 the first time during a session that it receives an event with a unique combination of Category/Action/Label, and ignores subsequent events in the session that have the same combination of Category/Action/Label.

The Total Events metric counts each event regardless of the combination of Category/Action/Label.


Dimension and Metrics :

https://support.google.com/analytics/answer/1033861

  • Dimensions are QUALITATIVES. We can use until 2 dimensions in a report.

  • Metric are QUANTITATIVES


Stackoverflow : https://stackoverflow.com/questions/20168521/google-analytics-custom-metrics-dimensions-vs-events

Currently Reading :

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment