Google Tag Manager
Google Tag Manager (GTM) lets you manage all your website tags:
code fragments, tracking pixels, etc.
With GTM you can add myTracker tags and other analytics systems
without editing code.
The instruction below implies that you have already added the GTM script
to all pages on your website where you plan to track user activity.
For details refer to the Google Tag Manager documentation
In Google Tag Manager
click on Add a new tag.
- Specify the tag name, then click on the block
and select the Custom HTML type.
- Into the HTML field
copy a counter code from myTracker.
To learn how to get code see the section Web counter.
In the Triggering block
select the All pages trigger
to activate code execution on all pages of your website.
- Press the Save button.
From now on, myTracker will gather basic data on your website
(new users, number of sessions, hits and attributes).
Add a tag to each event/goals that you plan to track
(e.g. registration, authorization, adding products to basket, etc.):
- Create a new trigger that will activate the tag.
You can skip this step if you use the triggers already created.
Find the list of triggers and the Create button on the Triggers
page in the Google Tag Manager interface.
Trigger defines a rule at which GTM activates a tag (e.g. when viewing a page)
- Repeat integration steps, while doing so:
- into the
HTML field copy
relevant event code from the section Track goals section;
- in the Triggering block
select the trigger created for the event.
As a result, myTracker will receive data on website events.
In addition to devices stats, you can get stats per registered user.
Simply pass user ID with each tracked event.
For details, refer to the Track user section