We'll be with you in a second

Good for post-IOS 14.5

Docly Child

HighLevel and RedTrack

Estimated reading: 4 minutes

HighLevel (aka GoHighLevel/ High Level/ GHL) positions as the go-to solution for agencies. It is an all-in-one tech stack for agencies or marketers, eliminating the need for other tools.

Integration steps

1. Add RedTrack Webhook URL to your HighLevel account

1.1 Go to your HighLevel account-> Automation->Triggers-> Add Trigger:

1.2 In the pop-up window give your Trigger a name-> select the folder you want to put it in-> press Save:

1.3 Paste the generated RT webhook URL to the form-> click Active:

The template of the RT Webhook URL is https://defaultrtdomain.rdtk.io/postback/custom/gohighlevel/APIkey where you need to:

* replace defaultrtdomain.rdtk.io with your actual domain:

* replace APIkey with your actual API key.

2. Add clickid parameter to the HighLevel form

2.1 Go to Sites-> Forms-> choose the needed form from the list:

2.2 On your right choose the tab Custom fields-> press the button Add Custom Field:

2.3 In the pop-up window choose Single Line-> in the Text Field type the parameter {clickid}-> press Next:

2.4 Fill in the mandatory fields-> press Save:

Values to put in the fields:
Name of the field = rtclickid
Placeholder = {clickid}
Object = Contact

2.5 Fill in the mandatory fields-> press Save Form-> press Integrate Form to apply the changes to it:

Values to put in the fields:
Field Title: rtclickid
Placeholder: {clickid}
Query key: rtclickid
Hidden Value: {clickid}

1. Add custom tracking domain

2. Set up conversion tracking

3. Add your Brand and Website (for Advertisers) / Offer source and Offer (for Affiliates)

When you added the Brand/Offer source, remember to assign the following roles:

4. Add the needed Traffic channel

5. Create a paid traffic campaign

The campaign for the unattributed (organic) traffic is already in place. Now you need to create the one for the paid traffic. Follow these simple steps:

  • Add the Traffic channel. Most of them have a preset template in RedTrack.
  • Launch a campaign for the paid Traffic channel. Your website/shop will be the main link added to the traffic channel.
To set up GTM correctly, you must have the already-generated universal tracking script.
* For Affiliates: use this guide to help you with the universal tracking script.
* For Advertisers: a universal tracking script was created automatically once you had added your Website.

Both Affiliates and Advertisers can find the generated universal tracking script in Tools-> Scripts:

1. Add the universal tracking script to GTM

Follow this guide on integrating Google Tag Manager (GTM) with RedTrack and the steps below on HighLevel-related insights.

1.1 Create a 1st party cookie variable: rtkclickid-store

1.2  Create 3 types of Tags:

Essential elements:

  • Type= Custom HTML
  • Triggering= All Elements (All Clicks)

Script:

<script>
function setFormClickIdValue(clickid) {
var currentUrl = new URL(window.location.href);
currentUrl.searchParams.set('rtclickid', clickid)
console.log(currentUrl.href);
var pageviewCount = getCookie("pageviewCount");

if (typeof pageviewCount === "undefined" || parseInt(pageviewCount) < 2) {
window.location.href = currentUrl.href
}

}
function getCookie(name) {
var value = "; " + document.cookie;
var parts = value.split("; " + name + "=");
if (parts.length == 2) return parts.pop().split(";").shift();
}
if (getCookie('rtkclickid-store') !== null && getCookie('rtkclickid-store') !== undefined && getCookie('rtkclickid-store') !== 'undefined') {
setTimeout(function(){
setFormClickIdValue(getCookie('rtkclickid-store'))
}, 100)
}
</script>

Essential elements:

  • Type= Custom HTML
  • Triggering= Initialization (All Pages)

Script:

<script type="text/javascript">
var pageviewCount = getCookie("pageviewCount");

if (typeof pageviewCount === "undefined") {
pageviewCount = 1;
} else {
pageviewCount++;
}

setCookie("pageviewCount", pageviewCount, 30);
function getCookie(name) {
var value = "; " + document.cookie;
var parts = value.split("; " + name + "=");
if (parts.length == 2) return parts.pop().split(";").shift();
}
if (getCookie('rtkclickid-store') !== null && getCookie('rtkclickid-store') !== undefined && getCookie('rtkclickid-store') !== 'undefined') {
setTimeout(function(){
setFormClickIdValue(getCookie('rtkclickid-store'))
}, 100)
}
function setCookie(name, value, expires) {
var cookie = name + "=" + value + "; path=/; domain=." + location.hostname.replace(/^www\./i, "");

if (typeof expires !== "undefined") {
var now = new Date();
now.setTime(now.getTime() + expires * 24 * 60 * 60 * 1000);
cookie += "; expires=" + now.toUTCString();
}

document.cookie = cookie;
}
</script>

Essential elements:

  • Tag  = Custom HTML
  • cookiedomain=domain
  • Triggering = Page Views (All Pages)

Script:

  • For Affiliates: use this guide to help with the universal tracking script.
  • For Advertisers: a universal tracking script was created automatically once you had added your Website.

Both Affiliates and Advertisers can find the generated universal tracking script in Tools-> Scripts:

2.  Install GTM and universal tracking scripts in the HighLevel funnel

2.1 Sites-> Funnels-> choose the needed funnel:

2.2 Go to the Settings of the funnel-> insert the needed scripts to the Head tracking code and Body tracking code parts-> press Save: