Integrate Google Tag Manager and Analytics

To help you see how users move around your slider, we send events to Google.

You can find out how to enable these events in this article: Tracking Settings

You can find an introduction to the tag manager here: Tag Manager Help


  • Google Tag Manager account
  • Analytics account


Principally, there are three main elements in the tag manager: tags, triggers and variables.

A trigger is activated by certain events and then in turn triggers tags.

In order to transfer the slider events from the tag manager to Google Analytics, we need to recognise the slider events and pass them through. You’ll now learn what is required to do this.

CreatingDataLayer variables

In this step, we create the DataLayer variables (DL – *) for the events to pass on to Analytics later.

Click on the menu item “Variables” in the tag manager.

Now create a new “User-defined variables”. Select “Data layer variable”.

Now enter eventAction for “Data layer variable name” and name your variable sensibly.

Repeat these steps for:

  • eventCategory
  • eventLabel
  • eventValue

Create EventTrigger

Now select the menu item “Trigger” and click on “New”.

Select “Custom Event” as the “Trigger Type”.

Enter “gaEvent” as the “event name” and name the event sensibly.

Create tag

Finally, we create the tag that will be triggered by the gaEvent trigger and transmit the slider event to Google Analytics.

Now select the menu item “Tags on” and click on new.

Select “Google Analytics – Universal Analytics” as “Tag Type”, “Event” as “Tracking Type” and select the previously created datalayer variables for Category, Action, Label Value.

The last step is to select the trigger. To do this, click on Trigger and select the Analytics trigger you created earlier.

Publish container

Now we publish the changes we made. To do so, click on “Submit” in the top right-hand corner and follow the instructions.

Analytics control

The slider events should now appear in Analytics and can be evaluated.

War dieser Artikel hilfreich? 1 Star2 Stars3 Stars4 Stars5 Stars (3 Bewertungen, Ø 4.67 von 5)