TABLE OF CONTENTS |
What is Google Tag Manager?
For those with a custom API eCommerce site, please jump to Custom API eCommerce Sites.
What is the difference between Google Analytics and Google Tag Manager?
- Google Analytics - Tool for collecting, processing, and analyzing website data, such as:
- Who is visiting your website?
- Which pages do they view?
- What hardware are they using (e.g. Mobile phone or Desktop)
- Google Tag Manager - Tool that enables you to configure tags to track/collect additional data without needing ACME development, such as:
- Which Event did the visitor purchase?
- Did the user come from your website and finish their purchase?
What types of tags can be configured on Google Tag Manager?
- Facebook Pixel
- Google Ads Conversion Tag
- Google Ads Remarketing Tag
Please note, due to changes to Apple's User Privacy and Data Use policy, Facebook is now limiting the number of conversion events per domain. This will affect any eCommerce clients that have configured a Facebook conversion pixel through their individual Google Tag Manager (GTM) account. As ACME holds the domain for any clients using the ACME hosted eCommerce site, any individual domain verification requirements cannot be met. Clients with a custom API website should be able to complete domain verification. See more about When to Use Domain Verification to Verify Your Business in Facebook's Business Center.
You can read more about this change on Facebook's Business Help Center:
Facebook Pixel Updates for Apple's iOS 14 Requirements
How Apple’s iOS 14 Release May Affect Your Ads and Reporting
Google Tag Manager Setup
- Create an Account and Container(s)
- Add a new container to an existing account
- Configure your Containers to work with ACME
Note: Do the following for each container if you created both a production and test container- Configure Built-In Variables
- Set up User-Defined Variables
- Navigate to the "Variables" section on the left hand pane.
- Under "User-Defined Variables" click "NEW" and a new pane will open up.
- Rename "Untitled Variable" to "Event Action" and a new pane will open up.
- Select "Data Layer Variable"
- Set the "Data Layer Variable Name" field to "eventAction"
- Repeat the process above to create the following variables:
- Note that the text below is formatted as "Title (variableName)" for each "Data Layer Variable"
- Event Category (eventCategory)
- Event Label (eventLabel)
- Event Value (eventValue)
- Order Id (Order Id)
- Page Title (Page Title)
- Price (Price)
- Product Category (Product Category)
- Product Id (Product Id)
- Product Name (Product Name)
- Product Variant (Product Variant)
- Product Brand (Product Brand)
- Quantity (Quantity)
4. Set up ACME Triggers
Note: Do the following for each container if you created both a production and test container
- Navigate to the "Triggers" section on the left hand pane.
- Create standard triggers
- Click "NEW" and a pane will open up.
- Rename "Untitled Trigger" to "VirtualPageview Trigger"
- Click "Trigger Configuration" and a pane will open up.
- Select "Custom Event"
- Set the "Event name" field to "VirtualPageview"
- Set "This trigger fires on" to "All Custom Events"
- Save
- Repeat the process above to create the following additional triggers:
- Product Trigger
- Interaction Trigger
- Create a conversion trigger that fires only when the visitor successfully completes a purchase
- Click "NEW" and a pane will open up.
- Rename "Untitled Trigger" to "Checkout Trigger" (or a name of your choosing)
- Click "Trigger Configuration" and a pane will open up.
- Select "Custom Event"
- Set the "Event name" field to "Interaction"
- Set "This trigger fires on" to "Some Custom Event"
- Set "Fire this trigger when ..." to "Event Action” "equals" “Purchase::Complete"
- Save
5. Set up Tags
Connect Google Tag Manager with ACME
- Log into ACME Back Office
- Navigate to the "Themes" section on the left hand pane.
- Under "Text Variables" add the following line after the opening bracket
- "gtm-tracking-code": "YOUR PRODUCTION GTM CODE HERE",
- "gtm-tracking-code-test": "YOUR QA/TESTING GTM CODE HERE",
- Update and wait for the success confirmation to show and dismiss
- Navigate to https://buy.acmeticketing.net/events/{TENANT_ID}/list
- Note: It may take a moment the first time but it will speed up thereafter.
Because GTM supports preview and versioning there is no danger in using the same test code and production code, however, this is only recommended for power users. If your code is not published then you will not see any data flowing, only after placing the tag in preview mode will you be able to see the debugger show up on the website. Once the code is published you will not need to turn on preview but data will be flowing to your published tag.
Custom API eCommerce Sites
The GTM tracking codes configured in the ACME Theme simply trigger the necessary scripts to be placed on all ACME eCommerce (B2C) pages. If you have implemented a custom API site, you do not need to configure these tracking variables in ACME.
For those implementing a custom eCommerce site with the ACME APIs, refer to the Google Tag Manager documentation to implement this on your end.