ilker.cikrikcili avatar

Event tracking in Google Analytics | How to do in 7 steps!

ilker.cikrikcili

Published: 15 Feb 2018 › Updated: 15 Feb 2018Event tracking in Google Analytics | How to do in 7 steps!

Event tracking in Google Analytics | How to do in 7 steps!

One of the most important topics in Digital Marketing is traffic tracking. In today's internet businesses, it's crucial to measure the efficiency of your marketing efforts. Monitoring your traffic and evaluating it according to your KPIs gives you the ability to optimize your traffic, as a result, you get better results with less money.

Whether you are managing an e-commerce website or a personal blog, you must be familiar with Google Analytics (GA) and Google Tag Manager (GTM). As long as you have GTM codes in your website, it's very easy to embed tracking codes of other sources or integrate Google Analytics. GTM has already a built in GA tag in it:
GA tag.png

Majority of the GTM users are familiar with "page view" type of tracking which is based on the visitor views of certain URL in your website. However, in this post, I'd like to write about a more advanced concept: "Event Tracking":
event.png

What is an event?

Event is a visitor action can be defined on a web page such as a mouse click in order to download an e-book, watch a video, subscribe to a mailing list. If these actions doesn't forward visitor to another page (ie. to a thank you page) "page view" type of tracking doesn't work. If the goal of your landing page is making visitors watch a video, you better monitor this activity by creating an event trigger.

How can you track a button click?

Easy! (Well, not so easy in the first try :) )

  • Step 1:
    Create a new variable in GTM:
    new variable.png

As variable type: Auto-Event variable and Variable Type: Element Classes
variable.png

  • Step 2:
    Find the button code from the HTML source file:
    button.png

  • Step 3:
    Create a new trigger by using the variable you created in Step 1. Trigger type will be "Click - All Elements"
    trigger.png

By using this trigger, you'll be able to trigger the tag you'll create in Step 4.

  • Step 4:
    Create a new Universal Analytics Tag by selecting Event as tracking type:
    tag.png

  • Step 5:
    Run GTM Preview to test whether your trigger is working correctly:
    preview.png

  • Step 6:
    Test your trigger:
    test.png
    If you see that your trigger is fired, they congratulations! You've done the setup correctly.

  • Step 7: Create Goal
    Yes, not finished yet. Login to your Google Analytics account, go to admin section and click on goals. In the beginning, you'll have no goals in this section. Create a new Goal by using the values you've entered in your Tag (Category, Action, Label, Value):
    GA.png

Soon GA will populate Goal columns of your reports, so you will be able to monitor which channels assited with how many goal completions!
report.png

Leave Event tracking in Google Analytics | How to do in 7 steps! to:

Written by

Read more #googleanalytics posts


Best Posts From ilker.cikrikcili

We have not curated any of ilker.cikrikcili's posts yet. But you can encourage our curation team to review posts by visiting them regularly and by referring other readers. Because we give priority to frequently read content.

More Posts From ilker.cikrikcili