1. Home
  2. Links
  3. Destination URL variables

Destination URL variables

Sometimes, merchants have specific tracking needs with their affiliate links.

When redirecting to the destination URL, you may have the need to add additional information at the time of redirect. These variables are replaced with information at the time of click.

They are currently as follows:

  • trackid – The unique identifier that will be used to match a click to an event in LinkClicky. It is randomly generated and 20 characters in length. If LinkClicky detects the affiliate system used, it will add this automatically.
  • sessionid – A unique identifier per browser device.
  • referrer – The previous web page before clicking on a LinkClicky link.
  • tag – The parameter after the keyword (i.e. /keyword/tag ). See tags for more information.
  • c00c19 – Click parameters that can pass data from a webpage to the destination link.

To use any of these variables, you must enclose them in brackets [ ].

The destination URL must be the correct URL format. LinkClicky does not sanity-check your URL is in the correct format.

Examples

You want to pass the referrer to the destination page to set up a destination link like the one below.

https://someurl.com/?s1=[referrer]

If the link came from https://larryludwig.com/somepage/ it will append that to the URL and will look like:

https://someurl.com/?s1=https://larryludwig.com/somepage/

A more complex example.

If you want to pass the tag and two-click parameters to an Impact affiliate link.

https://go.larryludwig.com/bluehost/tag1234?c00=hello&c15=there
https://bluehost.sjv.io/c/69902/1456521/11352?subId1=[trackid]&hello=[tag]&first00=[c00]&c15=[c15]

At the time of click, the variables will be replaced with the following:

https://bluehost.sjv.io/c/69902/1456521/11352?subId1=vs7ULyMMgBAzZqnoBXxM&hello=tag1234&first00=hello&c15=there
Updated on April 30, 2024

Was this article helpful?

Related Articles