GTM setup for Advertiser tracking
Intro
This guide explains how to set up Advertiser tracking and e-commerce conversions in Google Tag Manager.
Setup in RedTrack
1. Create custom tracking domain
1. Add a CNAME record pointing to your RedTrack default domain in your domain registrar.
2. On the left menu go to Tools → Domains → Create new domain.
3. The default domain is stated right on the top and looks like smth.rdtk.io.
4. Add the integrated domain to your RedTrack account and activate the Free SSL option.
2. Add Brand and Website
1. Go to Brands → New → Add your brand (it is the name of your shop or your website).
2. On the same page, add the purchase data parameters – Name/Description is what you will see in reports – Roles define their use with CAPI.
3. Go to Websites → New → Add your website URL (this is your e-commerce shop/website link).
4. Follow the suggested steps to generate the scripts. You will need it later for your e-commerce platform.
5. In the added Website form go to Scripts → E-com integrations → select Custom e-com (via GTM) → copy the Conversion tracking script:

Here is more information about Brands & Websites in RedTrack.
3. Add conversion types
To add custom conversion event types (other than the automatically added Purchase), go to Tools → Conversion tracking → Conversion types → add the event types you want to track with RedTrack.
Setup in GTM
1. Prerequisites
The guide below is meant for those who already have a GTM account and the connected domain. In case you don’t have one, here is how you can add it.
2. Create a variable for rtkclickid-store
Variables → User-Defined Variables → New → add the following mandatory values:
- 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).Â
3. Create a Custom HTML Tag for the universal tracking script
Tags → New → add the essential elements in the Tag Configuration window:
- Name: any convenient name (use the easy one to identify)
- Tag Type: Custom HTML
- HTML: Place the universal tracking script from RedTrack
More info about the RT universal tracking script is here → I’m Advertiser section.
- Trigger: All Pages

4. Create a Custom HTML Tag for the conversion tracking script
Tags → New → add the essential elements in the Tag Configuration window:
- Name: any convenient name (use the easy one to identify)
- Tag Type: Custom HTML
- HTML: Place the Conversion tracking script copied from the RedTrack Website form.
1. Replace var type = “conversionname”; with the name of your conversion event (e.g., “Purchase”), and ensure this event type is already created in RedTrack. Keep the value in “”.
2. Replace replace_with_variable with the name of the variable in your GTM container that holds the payout or purchase value.
→ If such a variable already exists, use the existing one.
→ If not, create a new variable for this value and insert its name in the script.
- Trigger: Select a trigger corresponding to the moment when you want the conversion to be fired (e.g., a “Thank You” page that appears after a successful purchase, or any other event that marks the completion of a conversion).
