Traffic sources

Universal tracking script

As an affiliate marketer, you are most certainly familiar with the situation when you want to send traffic from multiple sources to one Landing Page with no-redirect tracking.

Or you probably own an online store and want to track visits from various paid channels you have.

Such a scenario makes it challenging to determine which source the traffic comes from and to track the statistics accordingly. Now let’s bring the challenge to the new level and imagine your traffic sources are Facebook and Google. Moreover, you also want to keep monitoring your organic traffic on the same page.

Sounds complicated, doesn’t it? Don’t worry, RedTrack has a solution. With just one single script, you will be able to track your purchased and organic traffic separately for each source.

1. Create target Campaigns. One of them should be for Organic traffic (in RedTrack template for organic traffic is called “Other“).
2. Generate your unique script based on your needs and add it to your page code. To do that:

2.1. go to Tools -> Scripts -> New

2.2. Fill in the mandatory fields to generate the script accordingly:

Script type – select one of the 3 types.

  • default – choose this one if you plan to work with your own website (e.g. e-com store) where a visitor can click on any link or visit any tab while the target action is tracked always on some other page no matter what the visitor path was before.
  • /click support – use it when you lead the visitor from your landing page to a 3rd party offer and use domain.com/click CTA link format
  • /preclick support – same as /click support but for a prelanding page with domain.com/preclick CTA link

Title – give your script a name

Domain – choose a custom tracking domain that will be used in that script

Default campaign – organic traffic campaign created within step 1

Attribution – set the attribution model you want to use

  • First click – first recorded inbound click
  • Last click  – last recorded inbound click
  • Last paid click – last recorded inbound click with tracking parameters

Note! We always recommend using last paid click attribution.

Attribution window – set the attribution window, the period for the first click, and last paid click models

Cookie domain – the 1party domain to place a cookie. This is your website domain, the one where you place the script.

Generated script – once you save the changes, the ready-to-use script will be generated

3. Add the script to your landing page code. It is preferable to place the universal tracking script at the end of the body section of the landing page script.

4. After that, go to Campaign -> Tracking options -> Universal script -> copy:

5. Add the parameters string to the end of your URLs depending on the traffic source used.

Important!

RedTrack will identify the incoming traffic based on the “cmpid” parameter. If there is no “cmpid” in the URL, the traffic will be attributed to the default organic traffic campaign.

Related Articles