Integrate Google Tag Manager and Analytics

So that you can see how users move on your slider, we send events to Google. You can find out how to activate these events in this article:: Tracking Settings An introduction to the tag manager can be found here: Tag Manager Hilfe


  • Google Tag Manager Account
  • Analytics Account


In principle there are three essential elements in the tag manager: tags, triggers and variables. A trigger is activated by certain events and then triggers tags again. To transfer the slider events from the tag manager to Google Analytics, we need to recognize and pass the slider events. You’ll find out what’s necessary now.

Creating DataLayer Variables

In this step we create the DataLayer variables (DL – *) for the events in order to pass them on to Analytics later. Click on the menu item “Variables” in the tag manager.

Now create a new “Custom Variable”. Select “Data layer variable”.

Now enter eventAction under “Name of data layer variables” and name your variable meaningful.

Repeat these steps for:

  • eventCategory
  • eventLabel
  • eventValue

Create EventTrigger

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

Select “user-defined event” as “Trigger type”.

Enter “gaEvent” as “Event name” and name the event meaningfully.

Create tag

Finally, we create the tag that is to be triggered by the gaEvent trigger and transfers the slider event to Google Analytics. Now select the menu item “Tags on” and click on new. Select as “Tag Type” “Google Analytics – Universal Analytics”, as “Tracking Type” “Event” and select for Category, Action, Label Value the previously created Datalayer – Variables.

The last step is to select the trigger. Click on Trigger and select the previously created Analytics trigger.

Container Publishing

Now we publish the changes made. Click on “Send” in the upper right corner and follow the instructions.

Analytics check

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)