We'll be with you in a second ;)

100+ templates for affiliate networks

Docly Child

Google Tag Manager integration with RedTrack

Estimated reading: 3 minutes 0 views

Important note! 

Out tech team has prepared a step-by-step guide on how to integrate Google Tag Manager (GTM) with RedTrack, you can find it below.

Since it is an advanced tutorial, it is not covered by the RedTrack Support. Knowledge of web design languages such as HTML, CSS, JavaScript may be required. We suggest hiring an expert if you are not comfortable proceeding with the this guide on your own.

GTM settings

For your information:

The below-mentioned guide is for those already having a GTM account and the connected domain. In case you don’t have one, click here to check out what to do first.

1. Create a variable to get clickid from cookie:

Variable Name: rtkclickid-store
Variable Type: 1st Party Cookie
Cookie Name: rtkclickid-store

This is a container for the clickid you have stored in a cookie (for the script to take this value on some page where it will be needed). Do not change the naming.

2. Create a Tag:

2.1 go to Tags -> New:

2.2 add the essential elements:

Name: any convenient name (use the one that is easy to identify)
Type: Custom HTML
HTML: Place the Universal tracking script you are going to use
Trigger: choose where you want the script to fire (in our example, it is All Pages)

Website setup

Add the GTM code to your website (landing page). To do that:

1. Press the Tag id here:

2. Add the GTM codes to the page header and body as is stated in the window:

This is the only thing you will need to add to your page code. All other scripts and triggering conditions are set on the GTM side.

RedTrack setup

It will depend on your flow and can be either a simple no-redirect flow with a landing page and affiliate offer or a complex website with various triggers.

Both GTM and RedTrack functionality allows you to play with the settings, but here are the basic things you will need to create:

1. Of course, it’s a campaign, that is the fundamental element in RedTrack. The whole tracking is linked to the campaign. You will most likely be using a custom way of tracking conversion and sending a postback so you can skip the postbacks setup.

2. Custom tracking domain. This is a must nowadays as all service domains are more likely to be treated as malware.

Tips and tricks

Below are some useful elements you can use in your funnel. 

Postback trigger

Create GTM Tag that sends S2S URL with clickid attached  with following options:

Tag Name: RedTrack Payment Complete
Tag Type: Custom Image
Image Url: your actual S2S url with parameter clickid={{rtkclickid-store}} added
Triggering: the page where you want the postback to be fired, or the click on the button

Your RedTrack S2S postback URL template can be found under Tools->Conversion tracking

This trigger can be used to fire the postback URL

  • You may want to play with triggers to create a correct subsequence (for example, when the clicked fails to be recorded quickly).
  • There can also be different event triggering settings – it all depends on your current flow (the elements are created the same way we have described above).
  • GTM allows you to play with your settings in different ways. Having GTM integrated with RedTrack, you are ready to explore more. Here is more information on the functionality.

Leave a Comment

Share this Doc
Chat Icon Close Icon