Support Questions:Encode tracking link URL in gernated creative code

From HasOffers

If you are adding a tracking link into a creative and the click action isn't working as expected, the click URL may need to be encoded.

Some characters cannot be part of a URL (for example, the space) and some other characters have a special meaning in a URL: for example, the character # can be used to further specify a subsection (or fragment) of a document; the character = is used to separate a name from a value. A query string may need to be converted to satisfy these constraints. This can be done using a schema known as URL encoding.

In particular, encoding the query string uses the following rules:

  • Letters (A-Z and a-z), numbers (0-9) and the characters '.','-','~' and '_' are left as-is
  • SPACE is encoded as '+'
  • All other characters are encoded as %FF hex representation with any non-ASCII characters first encoded as UTF-8 (or other specified encoding)

For HTML Ads, Email Creatives and Text Links you may need to encode the tracking link in the code for the creative. Instead of using {tracking_link} which just included the tracking link as is, you can use {etracking_link} which will take the tracking link and insert it into the creative code encoded.

<a href="http://www.otherdomain.com/index.php?url={etracking_link}">Click here to see this hot offer</a>

Once an affilaite ID is known when generating creative code, the dynamic variables will be replaced. Example of generated creative code for the above creative file with the tracking link encoded.

<a href="http://www.otherdomain.com/index.php?url=http%3A%2F%2Fdemo.go2jump.org%2Faff_c%3Foffer_id%3D1%26aff_id%3D1%26file_id%3D104">Click here to see this hot offer</a>

 
Email this page to a friend or co-worker