We'll be with you in a second ;)

RedTrack.io provides privacy friendly and compliant tracking

Docly Child

Landing page before e-com shop

Estimated reading: 4 minutes 0 views

Types of cases when working with e-com shops

There are 2 types of cases when working with e-com setup:

  • Standard case: Traffic source-> e-com shop (e.i. Shopify/WooCom/Prestashop, etc.)

For such cases the RT ↔ e-com shop integration is simple. To set it up follow the steps in the needed guide.

  • Non-standard case: Traffic source-> Website (aka landing page) + CTA button-> e-com shop (e.i. Shopify/WooCom/Prestashop, etc.)

Such cases invite additional steps to the integration setup. For more details proceed further with this article.

RedTrack ↔ e-com shop integration for non-standard cases

How you deal with the non-standard case (traffic source-> website (aka landing page) + CTA button-> e-com shop) depends on the used domain. There can be 2 possible cases:

Case 1: Landing page domain is the same as the domain of your e-com store

What you have: your landing page domain is example.com and your e-com store is placed on the same domain example.com or a subdomain of example.com (i.e. sub.example.com)

In that case, act as follows:

1. Create a universal tracking script with a cookie domain leading to your landing page domain: example.com.

Important note 1

When adding your universal tracking script remember to choose this option in the Script type field:

Important note 2

If your e-com shop’s domain is sub.example.com, then your still put in example.dom as a cookie domain in your universal tracking script.

2. Place the universal tracking script to your landing page.

Case 2: Landing page domain and the e-com shop domain are different domains

What you have: your landing page domain is example2.com, but your e-com shop’s domain is example.com

In that case, act as follows:

1. Integrate RedTrack with the needed Offer source (where your e-com shop is placed).


Within this integration, your landing page (aka website) will serve as the Offer source.

2. Create a default campaign for this landing page. Name it somewhat like “Default Campaign for LP” to distinguish it from other Campaigns and use it in step 3 below.

3. Create a dedicated universal tracking script for this landing page where:

  • you choose this option in the Script type field:
  • the cookie domain will be example2.com;
  • the Default Campaign will be the one created within step 2 above (i.e. Default Campaign for LP)

In this scenario remember that within Case 2->Step 1 you’ve already added one default campaign and the universal tracking script for the domain example.com which is your e-com shop’s domain. Thus, by this moment you should already have 2 different universal scripts: for your landing page & for your e-com shop.

4. Place the universal script (created within Case 2-> Step 3) to your landing page.

5. Set the condition for your landing page to lead to your e-com shop store. It is done via GTM with the help of the Outbound script:

<script type="text/javascript">
(function() {
function getCookie(name) {
var value = "; " + document.cookie;
var parts = value.split("; " + name + "=");
if (parts.length == 2) return parts.pop().split(";").shift();
var utmInheritingDomain = "https://change.me", links = document.getElementsByTagName("a");
var rtClkId = getCookie('rtkclickid-store')
for (var index = 0; index < links.length; index += 1) {
var tempLink = links[index].href,tempParts;
if (tempLink.indexOf(utmInheritingDomain) > -1) {
tempParts = tempLink.split("#");
if (tempParts[0].indexOf("?") < 0 ) { tempParts[0] += "?" + '&rtkcid=' + rtClkId } else { tempParts[0] += "&" + '&rtkcid=' + rtClkId }
tempLink = tempParts.join("#");
links[index].href = tempLink;


  • in the Outbound script you need to change the “change.me” part to your e-com shop domain:

  • it is crucially important that the Outbound script works out AFTER the universal tracking script (Case 2-> Step 3,4).

Leave a Comment

Share this Doc
Chat Icon Close Icon