1. Knowledge Base
  2. How to Guides and Recipes

How to create a deeplink URL with AnyTrack

If you are promoting affiliate offers, sometimes you want to send traffic directly to the offer links without going through your website.

If you are promoting affiliate offers, sometimes you want to send traffic directly to the offer links without going through your website.

For example, you are promoting an offer on Twitter, on your Facebook page, or in an email.

Since AnyTrack can only track your links when the AnyTrack Tag loads on your website, you have to find a way to fire the Anytrack Tag through a redirect.

In this guide, we will show you how to create your own Deeplink so you can send traffic from anywhere to anywhere.

✅ Note: This feature is available from the personal plan and up

What is a Deeplink?

In the context of the World Wide Web, deep linking is the use of a hyperlink that links to a specific, generally searchable or indexed, piece of web content on a website rather than the website's home page. The URL contains all the information needed to point to a particular item. (Wikipedia)

Using deeplink is very important for marketers as they can programmatically redirect visitors to different pages without having to manually create hard-coded links.

The anatomy of a deeplink:

A deeplink is usually composed of two URLs.

Here is a full deeplink URL which includes the base URL, and the destination URL

https://data.anytrack.app/deeplink?aid=y3Hd2xqGDbWy&url=https%3A%2F%2Fanytrack.io%2Fanytrack-affiliate-program%2F

The base URL is:

https://data.anytrack.app/deeplink?url=

The destination URL:

https://anytrack.io/anytrack-affiliate-program/

Note:

The destination URL needs to be encoded:

https%3A%2F%2Fanytrack.io%2Fanytrack-affiliate-program%2F

 

Once you have your deeplink, you can embed it in a short URL such as Bitly or Hubspot short URLs.

 

To create your deeplink redirect, you will need the following:

  1. An AnyTrack account with a personal or advanced plan
  2. Access to your domain DNS configurations
  3. Submit the request 👉 form 
    ✅ As you click on this form URL, you will notice that we use the redirect that we created on the domain data.anytrack.app
  4. DNS instructions will be sent via email

Once you've followed the instructions and your settings have been validated, you will be able to create your deeplinks following the instructions below.

How to create your deeplink

🚀 You can use this form to create your deeplinks. But please read below before you start generating your deeplinks.

Your base URL is always the same: (this is a real link)

https://data.anyrack.app/deeplink?aid=y3Hd2xqGDbWy&url=

This is the Property ID under which the traffic and conversions will be recorded

?aid=y3Hd2xqGDbWy

Step 1: Append the destination URL (encoded format) click here to encode your URL

This is the unencoded URL

https://hubspot.sjv.io/c/169033/1178106/12893

This is the encoded URL

https%3A%2F%2Fhubspot.sjv.io%2Fc%2F169033%2F1178106%2F12893

The final URL should look like

https://data.anytrack.app/deeplink?aid=y3Hd2xqGDbWy&url=https%3A%2F%2Fhubspot.sjv.io%2Fc%2F169033%2F1178106%2F12893

Redirecting to an offer link that is not part of the integration catalog:

If your offer link is not recognized by the AnyTrack Tag, you should manually append the subid and clickid parameters to your link.

For example, if your partner instructions require that you pass the clickid to the custom parameter: custom_id

You will add the following query parameter to your link:

  • custom_id=--CLICK-ID--
https://anytrack.io?custom_id=--CLICK-ID--

✅ Now you can embed the final URL in a short URL provider such as Bitly, Replug, or Hubspot

🎯 Hubspot Short URL

https://hubs.li/Q01bs0Zf0

🎯 Replug Short URL (if you never heard about Replug, you should check them out)

https://share.top10review.app/f3a319e0

🔥 For power users:

You can click on this banner and inspect the network flow through your developer console to see how:

  1. The redirect goes from the short URL to the final destination
  2. AnyTrack AutoTag the offer link with the click_id
  3. AutoTrack a "redirect" event to your ad pixels and analytics

Tricks and tips:

Once your custom domain is set, things are very straightforward. You just need to add the destination URL to your deeplink and everything should work seamlessly.

Possible reasons for links not working are the following:

  1. Your property ID is suspended, or your account is limited
  2. Your destination URL is not encoded
  3. You've added some whitespaces somewhere
  4. Your custom domain is not pointing to the correct DNS records

Note that the redirect does not rely on cookies to redirect the visitors to your destination URL. However, if the user has an ad blocker, the tag might get blocked.