Finding cookie values a little much? Join us at eMetrics for Web Analytics the Google Way: Introduction and Overview on April 27th, and learn about measuring traffic, goals, ecommerce tracking and more.
See the event page, or register now.
Last week we briefly touched on utmt, mentioning that by default it will not show in the utm.gif request, and when this is the case the call is counted as a pageview. However, when one executes an action that is not a pageview, utmt will be labeled with the corresponding action type. Today we’re going to look at the ‘event’ type.
Events are pretty useful tools, allowing you to define actions other than pageviews. Previously to track a non-pageview action you would need to use a virtual pageview (what a concept) which would record an action (say clicking on a button, a flash object, or menu) as a pageview. Events allow us to do this without inflating our pageview count and gives us a means of defining more specific data about what action has taken place.
Events are “called” using the _trackEvent() method in the source code of a page object, widget, or video. One then specifies the event with a category, action, opt_label, and opt_value. Only category and action are required, but label and value are important as well.
This allows you to define some interesting data about users. Google provides two event tracking libraries intended to illustrate how extended event tracking can be implement via site-wide wrappers, and which also illustrate how flexible the event system can be.:
As I mentioned earlier, previous to events being included in GA, people would often use virtual pageviews for similar tracking tasks. Even with events, people would often use virtual pageviews for events which they wanted to attribute goals to due to, but with GAv5 you can now assign goals to events and so there really is no reason not to use them. You no longer have to inflate your pageviews in order to track actions!
To test your events, click on whatever causes one and watch your requests. You should end up with a GET request for the utm.gif with the utme query which matches the terms defined in your event. Your utme should correspond to the attributes you entered when setting _trackEvent().
Here’s your standard utm.gif request for a basic event:
[/html]
utmwv=4.9.1
utmn=1234567890
utmhn=[site url]
utmt=event
utme=5(object*action*label)(value)
utmcs=ISO-8859-1
utmsr=1680×1050
utmsc=32-bit
utmul=en-us
utmje=1
utmfl=10.2%20r154
As consumers become increasingly digitally savvy, and more and more brand touchpoints take place online,…
Marketers are on a constant journey to optimize the efficiency of paid search advertising. In…
Unassigned traffic in Google Analytics 4 (GA4) can be frustrating for data analysts to deal…
This website uses cookies.