Fun fact: Although Google Tag Manager is a more flexible and comprehensive tool that includes Google Analytics, there is currently no easy integration of the Autortack plugin. Perhaps Google plans to do this in the future.
Well, for now, all that remains is to come up with ways to implement the plugin through Google Tag Manager yourself.
Initial data:
The main Google Analytics code should already be loaded in a separate tag. It usually looks like this:
251-5.png
The identifier (UA-XXXXX-Y) can be specified singapore consumer email list in a separate variable of the constant type.
All you need additionally is one new tag and one trigger.
Tag Autotrack
To do this, a new tag of the Custom HTML tag type is created:
In the first part we define the entire plugin by adding its code, and then initialize it to interact with the main counter.
The line requires explanation:
ga(ga.getAll()[0].get('name')+'.require', 'autotrack');
Why can't we write like this:
ga('require', 'autotrack');
This is the difference between implementing the Autotrack plugin via code and via Google Tag Manager.
Implementing the Autotrack Plugin via Google Tag Manager
-
- Posts: 129
- Joined: Sun Dec 22, 2024 9:44 am