Difference between revisions of "The settings of E-commerce Tracking for Google Tag Manager (GTM)"

From osCommerce Wiki
Jump to navigation Jump to search
m (Changed protection level for "The settings of E-commerce Tracking for Google Tag Manager (GTM)" ([Edit=Allow only administrators] (indefinite) [Move=Allow only administrators] (indefinite)) [cascading])
Line 10: Line 10:
 
[[File:Image 263.png|none|frame]]
 
[[File:Image 263.png|none|frame]]
 
After the registration a GTM code recommended for installing on the website will be offered.  
 
After the registration a GTM code recommended for installing on the website will be offered.  
[[File:Image 264.png|none|frame]]
+
[[File:Image 558.png|alt=|none|frame]]
 
In our case we set up the container via the admin area on the following page.  
 
In our case we set up the container via the admin area on the following page.  
  
Line 16: Line 16:
  
 
It is necessary to indicate the code only like GTM-TG63T3S
 
It is necessary to indicate the code only like GTM-TG63T3S
[[File:Image 265.png|none|frame]]
+
[[File:Image 556.png|alt=|none|frame]]
[[File:Image 266.png|none|frame]]
+
[[File:Image 557.png|alt=|none|frame]]
 
While setting up GTM in TrueLoaded there is no need to use Google Analytics.
 
While setting up GTM in TrueLoaded there is no need to use Google Analytics.
  
 
2. Then the assumed look of the window will be as follows.  
 
2. Then the assumed look of the window will be as follows.  
[[File:Image 267.png|none|frame]]
+
[[File:Image 559.png|alt=|none|frame]]
 
For transferring the data to Google Analytics via GTM we set up the new TAG.
 
For transferring the data to Google Analytics via GTM we set up the new TAG.
[[File:Image 268.png|none|frame]]
+
[[File:Image 560.png|alt=|none|frame]]
 
In Tag Configuration section we choose Universal Analytics.
 
In Tag Configuration section we choose Universal Analytics.
[[File:Image 269.png|none|frame]]
+
[[File:Image 561.png|alt=|none|frame]]
 
[[File:Image 270.png|none|frame]]
 
[[File:Image 270.png|none|frame]]
 
For Track Type we indicate Page View, activate the check box “Enable overriding settings in this tag” and indicate ID from Google Analytics settings in this field. It may look like this one: UA-84506429-1. Then we click on the list “More Settings”, click on “Ecommerce” and choose “True” option and then we activate the check box “Use Data Layer”.  
 
For Track Type we indicate Page View, activate the check box “Enable overriding settings in this tag” and indicate ID from Google Analytics settings in this field. It may look like this one: UA-84506429-1. Then we click on the list “More Settings”, click on “Ecommerce” and choose “True” option and then we activate the check box “Use Data Layer”.  
[[File:Image 271.png|none|frame]]
+
[[File:Image 562.png|alt=|none|frame]]
 
In Triggering section we choose the trigger “All pages” for gathering the general information.  
 
In Triggering section we choose the trigger “All pages” for gathering the general information.  
[[File:Image 272.png|none|frame]]
+
[[File:Image 563.png|alt=|none|frame]]
 
[[File:Image 273.png|none|frame]]
 
[[File:Image 273.png|none|frame]]
 
These settings are enough to gather the general information for Google Analytics. For transferring the data on E-commerce it is necessary to choose one of the types: DOM Ready or Window Loaded.
 
These settings are enough to gather the general information for Google Analytics. For transferring the data on E-commerce it is necessary to choose one of the types: DOM Ready or Window Loaded.
Line 41: Line 41:
 
[[File:Image 277.png|none|frame]]
 
[[File:Image 277.png|none|frame]]
 
[[File:Image 278.png|none|frame]]
 
[[File:Image 278.png|none|frame]]
[[File:Image 279.png|none|frame]]
+
[[File:Image 564.png|alt=|none|frame]]
[[File:Image 280.png|none|frame]]
+
[[File:Image 565.png|alt=|none|frame]]
 
The possible look of the window after saving.
 
The possible look of the window after saving.
[[File:Image 281.png|none|frame]]
+
[[File:Image 566.png|alt=|none|frame]]
 
4. In its current state the container GTM has not been activated yet and it will not gather and transfer the data from the website. To activate it click on SUBMIT button and after indicating the details click on PUBLISH button.
 
4. In its current state the container GTM has not been activated yet and it will not gather and transfer the data from the website. To activate it click on SUBMIT button and after indicating the details click on PUBLISH button.
[[File:Image 282.png|none|frame]]
+
[[File:Image 567.png|alt=|none|frame]]
[[File:Image 283.png|none|frame]]
+
[[File:Image 568.png|alt=|none|frame]]
[[File:Image 284.png|none|frame]]
+
[[File:Image 569.png|alt=|none|frame]]
 
5. For transferring the data from the website it is necessary to activate the module Ecommerce Tracking. If both Google Analytics and GTM are active the message will appear and will make you choose one of the options.
 
5. For transferring the data from the website it is necessary to activate the module Ecommerce Tracking. If both Google Analytics and GTM are active the message will appear and will make you choose one of the options.
[[File:Image 285.png|none|frame]]
+
[[File:Image 570.png|alt=|none|frame]]
 
6. To display the data of electronic commerce in Google Analytics it is necessary to switch on the option regarding obtaining enhanced ecommerce.
 
6. To display the data of electronic commerce in Google Analytics it is necessary to switch on the option regarding obtaining enhanced ecommerce.
 
[[File:Image 286.png|none|frame]]
 
[[File:Image 286.png|none|frame]]
 
[[File:Image 287.png|none|frame]]
 
[[File:Image 287.png|none|frame]]
 
[[File:Image 288.png|none|frame]]
 
[[File:Image 288.png|none|frame]]

Revision as of 15:15, 3 December 2021

Note: This manual is for osCommerce v4.

1. For the advanced work with GTM (obtaining the data for electronic commerce, setting of additional plug-ins) it is necessary to create the account on https://tagmanager.google.com/

While registering the name of the account is indicated (for example Holbi)

Image 261.png

and the address of the website for setting the container. It is possible to indicate the address of the website + the type WEB (in our case).

Image 262.png

Accept the service agreement by clicking on “YES” button.

Image 263.png

After the registration a GTM code recommended for installing on the website will be offered.

In our case we set up the container via the admin area on the following page.

/admin/google_analytics

It is necessary to indicate the code only like GTM-TG63T3S

While setting up GTM in TrueLoaded there is no need to use Google Analytics.

2. Then the assumed look of the window will be as follows.

For transferring the data to Google Analytics via GTM we set up the new TAG.

In Tag Configuration section we choose Universal Analytics.

Image 270.png

For Track Type we indicate Page View, activate the check box “Enable overriding settings in this tag” and indicate ID from Google Analytics settings in this field. It may look like this one: UA-84506429-1. Then we click on the list “More Settings”, click on “Ecommerce” and choose “True” option and then we activate the check box “Use Data Layer”.

In Triggering section we choose the trigger “All pages” for gathering the general information.

Image 273.png

These settings are enough to gather the general information for Google Analytics. For transferring the data on E-commerce it is necessary to choose one of the types: DOM Ready or Window Loaded.

Image 274.png
Image 275.png
Image 276.png

It is possible to indicate the details of the settings for the type. It is not recommended to choose a few types at the same time since the data from the website will be sent per each of the chosen types and as a result may be summed,

3. We save the settings.

Image 277.png
Image 278.png

The possible look of the window after saving.

4. In its current state the container GTM has not been activated yet and it will not gather and transfer the data from the website. To activate it click on SUBMIT button and after indicating the details click on PUBLISH button.

5. For transferring the data from the website it is necessary to activate the module Ecommerce Tracking. If both Google Analytics and GTM are active the message will appear and will make you choose one of the options.

6. To display the data of electronic commerce in Google Analytics it is necessary to switch on the option regarding obtaining enhanced ecommerce.

Image 286.png
Image 287.png
Image 288.png