Lengow Blog

Google Tag Manager: How to Integrate Lengow Tracking

Written by Tegan Marlow | Dec 19, 2016, 11:00:00 PM

Google Tag Manager lets you centralise all of your marketing tags across a single platform. Let's take a look at how you can set up the Lengow tracking in Tag Manager.

What is Google Tag Manager?

Launched by Google in 2012, Google Tag Manager gives you the ability to manage all your tags from a single interface that is accessible to everyone. To do this, you need to insert a single tag, generated by Google, into the code of your online store and then insert your tags directly from the interface. After this, you can freely control your tags without having to change the code on your site. Before setting up Google Tag Manager in your online store, make sure that the tags already on your site aren't the same as those that you want to add within the tag manager. So be sure to delete your old tags so that your results are accurate. If you do not have a Google Tag Manager account, go to the Google site to register! You must then create your account (name of your e-commerce site) and set up the container (the URL of your e-commerce site). When creating this container, the tool will generate a snippet of code that you will have to add to all the pages of your online shop: in the andsection of the page and after the tag opening . Once you've created your Google Tag Manager account, you can also add pre-existing tags such as Google Analytics, Google AdWords, AdRoll, Bing, or personalised ones such as Lengow tracking. 

So how do I add my Lengow tracking in Google Tag Manager?

To show you how to set up a custom tag in Tag Manager, let's take the Lengow tracking as an example. To add this tracking in Google Tag Manager, simply follow these steps.

1.) Create your tag

To create your tag, click on 'New' in the 'Tags' section. To find it again easily next time, we recommend you name it 'Lengow'.

2.) Set up your tag and trigger it

To configure your 'Lengow' tag, you must select 'Custom HTML Tag' to add the code to the 'Tag Configuration' location. To obtain this code, please visit our Help Center. Note: Please check the box 'Compatible with document.write'. Then click on 'Advanced Settings'. In 'Tag Trigger Options', select 'Once per Page'.To set the trigger for your tag, select the 'All Pages' trigger.
Once you have done this, save the tag you just created and proceed to the next step.

3.) Set up the Data Layer object

The Data Layer is an object that you must set up in the source code of your e-commerce site. This object contains all the information you want to communicate to Google Tag Manager, such as the behaviour of shoppers on your online store (depending on the type of device used) or the transactions made on your site. The Data Layer object consists of variables defined by pairs of names and values. The code for your data layer is added as follows: