Content Solutions DocumentationPublished Date: 2021-05-28 Downloaded: April 28, 2024, 3:50 pm |
Content Solutions Documentation |
Google Tag Manager Integration
2021-05-28
DisclaimerDue to the large number of third party applications and Content Management Systems (CMS), 1Worldsync Content Solutions, does not provide support for third-party applications or CMS. This guide is provided as an aide for guidance and suggestions for integration. 1WorldSync is not liable for any actions, damage or loss. If you require support for your third party application or CMS, please contact the owner or company that produced the application for assistance. |
Overview
Google Tag Manager is a free tool that makes it easy for marketers to add website tags – including conversion tracking, site analytics, re-marketing and more. It gives marketers greater flexibility and it lets webmasters relax and focus on important tasks.
This document provides an overview on how to insert the ContentCast Inline Content and Logo script as a custom HTML tag in Goggle Tag Manager
Prerequisites
Before you can integrate the ContentCast script, you will need to perform the following actions:
- Create an account or use an existing account at tagmanager.google.com
- Create a new container for your website
- Install a container in your content
Steps to add ContentCast Script as Custom HTML Tags
Since the ContentCast JavaScript is not yet explicitly supported via a template in Google Tag Manager, you will need to create a custom HTML tag to deploy our code. Follow the steps outlined below
- Log in to Google Tag Manager and into your respective Workspace
- From the Overview section, click on the “Add a new Tag” link
- Now click on “Choose a tag type to begin setup… and select “Custom HTML”
- Paste the 1WorldSync JavaScript within the HTML text area
- IMPORTANT: Replace “MANUFACTURER_NAME” and “MANUFACTURER_PART_NUMBER” variables in the 1WorldSync script with your website-specific variables that will contain the respective values. This will make sure the correct Manufacturer name and Manufacturer Part Numbers are passed to 1WorldSync when the tag gets fired. You could also hardcode the values for “LANGUAGE” and “MARKET” since they will be consistent. Feel free to comment out the unused variables such as ‘CPN’, ‘UPC_EAN_CODE’, and ‘CATALOG_CODE’
- IMPORTANT: When inserting variables within the custom HTML tag, make sure to wrap the variable names within double braces. For example ‘{{variable_name}}’
- See https://support.google.com/tagmanager/answer/6107167?hl=en#CustomHTML for more details
- Below is an example of how your custom HTML tag would look after filling in the variable names
- Choose Triggers as “All Pages” to make sure the 1WorldSync script fires on all of your product pages
- Click “Save”, “Preview” and then “Publish” once everything looks good.
Support
For detailed technical documentation about Google Tag Manager please refer – https://support.google.com/tagmanager#topic=3441530
Review the Google Tag Manager Forum here – https://productforums.google.com/forum/#!forum/tag-manager