Deeplink settings
Deeplink is a special mechanism that allows you to make an affiliate link from the direct product link. This allows affiliate programs to track clicks and charge you with a commission for sales. Usually, affiliate programs use either of affiliate link generation methods. Let's take a look at some examples.
Usually affiliate networks use Deeplinks. They direct a visitor to their server for statistics and then redirect them to the advertiser's website.
https://ad.admitad.com/g/383ee6455773fd57830a7d95a12660/?ulp=https%3A%2F%2Fwww.lightinthebox.com%2Fen%2Fp%2Fkids-girls-rainbow-dress-purple_p7923807.html
That's why an affiliate link consists of two parts:
- The affiliate network script address.
- The product's URL on the advertiser's website.
The product URL is usually shown in a percent-decoded form, e.g., instead of
https://
, you'll see https%3A%2F%2F

You can easily change the product URL to any other, and your affiliate link will still work.
- 1.Generate a correct example of an affiliate link for any product (not an index page) from the advertiser's website.
- 2.Find the product URL part in your affiliate link and replace it with a special template
{{url_encoded}}
. Don't change the other parameters. - 3.Place the obtained Deeplink in the corresponding option field.
https://ad.admitad.com/g/383ee6455773fd57830a7d95a12660/?ulp={{url_encoded}}
Content Egg will replace the
{{url_encoded}}
template with the encoded URL for the current product. Refresh the product page and make sure the redirect works correctly.Use the
{{url}}
template if you need an uncoded product URL.If the network supports sub IDs, you can use some other templates to track page click:
{{post_id}}, {{author_id}}, {{author_login}}, {{item_unique_id}}
.Direct affiliate programs use affiliate ID to generate affiliate links because they don't need additional redirect for statistics.
Here are affiliate links for Amazon, for example:
https://www.amazon.com/dp/B07XKF5RM3/?tag=yourtag-20
yourtag-20
is your unique tracking IDtag=
is a parameter name for affiliate ID. This name differs for every affiliate network.
- 1.Generate examples of affiliate links for several products from the advertiser's website.
- 2.All links will contain the same affiliate ID. Find it and place it in the corresponding domain settings.

Don't use
'?'
or '&'
before the ID. External Importer will automatically add the right parameter to any URL.The following examples are incorrect:
yourtag-20
is incorrect, there's no parameter name.&tag=yourtag-20
might work in some cases, but it's better to omit'&'
.?tag=yourtag-20
might work in some cases, but it's better to omit'?'
.
After setting new Deeplinks, check your affiliate network panel to make sure all clicks are counted correctly.
You can set separate deeplinks for subdomains or domains. Use special syntax:
default_deeplink;subdomain1:deeplink1;subdomain2:deeplink2
eg:
https://alitems.com/g/1234567/?ulp={{url_encoded}};tmall.aliexpress.com:https://alitems.com/g/abcdef/?ulp={{url_encoded}}
For more complex cases you can use use special syntax to perform a regular expression search and replace:
[regex][pattern][replacement]
For example:
[regex][/https://www.flipkart.com/(.+)/][http://dl.flipkart.com/dl/$1&affid=myaffid']
[regex][/https://shopee.com.my/(.+)/][https://shopee.com.my/universal-link/$1?utm_source=an_12345670001&utm_medium=affiliates&utm_campaign=-&utm_content=kpgmk-aepro---&af_siteid=an_12358850002&pid=affiliates&af_click_lookback=7d&af_viewthrough_lookback=1d&is_retargeting=true&af_reengagement_window=7d&af_sub_siteid=kpgmk-aepro---&c=-]
You can also replace special tags with product data like:
%PRODUCT.domain%, %PRODUCT.price%, %PRODUCT.title%, %PRODUCT.sku%, %PRODUCT.currencyCode%
For example:
https://click.allkeyshop.com/comparator/%PRODUCT.sku%?apiKey=12345
Last modified 6mo ago