Google Tag Manager
  • 21 Oct 2024
  • Dark
    Light

Google Tag Manager

  • Dark
    Light

Article summary

Google Tag Manager (GTM) offers a more efficient integration process compared to a direct integration of our tracking code.

This article covers the integration of client-side tracking. For information on installing Server-to-Server (S2S) in Google Tag Manager, please see S2S via GTM.

If you wish to review the source code of our tags before adding them to your container, you may view them here:

These tags are published and maintained by Awin employees.


Step 1 - The Advertiser MasterTag

The Awin MasterTag (also referred to as the Journey Tag) is a JavaScript library that contains all the necessary functions for our tracking solution.

For more information on this tag’s function, please see the Advertiser MasterTag.

  1. In Google Tag Manager, navigate to “Tags”.

  2. Click “New” and choose “Discover more tag types in the Community Template Gallery”.

  3. Screenshot 2024-10-17 134837Searching for “Awin” will reveal the Advertiser MasterTag. Select this tag published by Edin Cuturic.



  4. Add this tag to your workspace, accepting any notices. This tag will need permission to inject scripts on your site on your behalf.

  5. Please configure the tag with your program’s associated Advertiser ID (MID) and the relevant triggers.

Step 2 - The Conversion Tag

Now that you’ve configured the MasterTag, we’re ready to begin the integration of the Conversion Tag. Before we integrate the tag itself, we’ll need to add automatic deduplication and the Channel Parameter.

Last Click Identifier

The AW Last Click Identifier tag will allow our tag and, thus, our systems to determine who the last paid click referrer was before a customer completed checkout. In the case that this referral came from an Awin Publisher, we can ensure that they’re rewarded for their action.

  1. Start by adding the tag in the same fashion as before. This time, select “Awin - AW Last Click Identifier” published by Allan Urique.

  2. Add this tag to your workspace and accept any applicable notices.

  3. Configure your tag as shown below, taking special note of the variable configurations.

  4. With the correct configuration, you can save this tag.

Next, we’ll create a variable to read the value of the cookie created by this tag. While “AwinChannelCookie” is the default, you’re welcome to define your own or refer to another.

  1. Navigate to “Variables”.

  2. Create a new “User-Defined Variable”.

  3. Set the cookie name based on the previously determined name in the last step.


  4. Keep note of this new variable as you’ll need to reference it in your Conversion Tag.

The Conversion Tag

For specific information on each of the parameters’ uses, please see our article on the Conversion Tag.

As a quick reference, the only optional fields in this tag are Customer Acquisition, Custom Parameters, and Product Level Tracking.

  1. Start by adding the tag in the same fashion as before. This time, select “Awin Conversion Tag” published by Edin Cuturic.

  2. Add this tag to your workspace and accept any applicable notices.

  3. Assign your variables as noted. If you’re unsure of best practices for these variables, please see the table in our Conversion Tag article.

Take special care to assign the correct variable for your Channel parameter. This will be the variable defined earlier on in this process.

You’ve completed the client side integration of Awin tracking! From here, we recommend that you test your integration and continue on with integrating the Server-to-Server portion of our tracking.


Was this article helpful?