Deeplink settings

Deeplinks allow you to convert a direct product URL into a trackable affiliate link. This mechanism ensures that your affiliate program tracks clicks correctly and rewards you with commissions for sales. Most affiliate networks use one of two methods to generate affiliate links. Below, you'll find detailed explanations and setup instructions for each.

Many affiliate networks (e.g., AWIN, ShareASale, CJ) use Deeplink redirects. These links first route the visitor through the affiliate network's servers for tracking purposes before redirecting them to the actual product page.

https://ad.admitad.com/g/383ee6455773fd57830a7d95a12660/?ulp=https%3A%2F%2Fwww.lightinthebox.com%2Fen%2Fp%2Fkids-girls-rainbow-dress-purple_p7923807.html

As you can see, a Deeplink typically has two components:

  • The affiliate network’s tracking script.

  • The encoded product URL from the advertiser’s website (percent-encoded format).

🔁 You can replace the product part of the URL with any other valid product link — the Deeplink will still function correctly as long as the structure is preserved.

  1. Generate a sample affiliate link for any product page (not the homepage) using your affiliate account or tools provided by the network.

  2. Identify the product URL inside the link.

  3. Replace the product URL portion with the placeholder {{url_encoded}}.

  4. Paste the new Deeplink into the Deeplink URL field in Content Egg.

Example Template:

https://ad.admitad.com/g/383ee6455773fd57830a7d95a12660/?ulp={{url_encoded}}

When generating links, Content Egg will automatically substitute {{url_encoded}} with the current product’s encoded URL.

Use {{url}} instead if the network does not require encoding.

Optional Tracking Parameters

Some networks allow you to pass additional information (e.g., sub IDs) for better tracking. You can use the following dynamic templates within your Deeplink:

  • {{post_id}} – WordPress Post ID

  • {{author_id}} – Post Author's User ID

  • {{author_login}} – Post Author’s Username

  • {{item_unique_id}} – Unique ID of the product

Some affiliate programs (like Amazon) don't use Deeplink redirection. Instead, they simply append a unique affiliate ID to the product URL.

https://www.amazon.com/dp/B07XKF5RM3/?tag=yourtag-20
  • yourtag-20 is your affiliate tracking ID

  • tag is the parameter name used by Amazon (this may vary across networks)

  1. Generate a few affiliate links using your advertiser’s website or affiliate dashboard.

  2. Identify the common tracking ID — this will appear the same across all links.

  3. Locate the tracking parameter name (e.g., tag=yourtag-20, aff_id=abc123).

  4. Enter the full parameter (name + value) in the domain settings within Content Egg.

✅ Correct:

  • tag=yourtag-20

  • aff_id=abc123

❌ Incorrect:

  • ?tag=yourtag-20

  • &tag=yourtag-20

  • yourtag-20

  • Just tag without a value

Content Egg Pro supports multiple Deeplinks for different domains or subdomains. This is useful if you work with networks that require different tracking templates for specific sites.

Syntax:

default_deeplink;subdomain1:deeplink1;subdomain2:deeplink2

Example:

https://alitems.com/g/1234567/?ulp={{url_encoded}};tmall.aliexpress.com:https://alitems.com/g/abcdef/?ulp={{url_encoded}}

In this example:

  • The default Deeplink (https://alitems.com/g/1234567/?ulp={{url_encoded}}) will be used for all domains unless a match is found.

  • A specific Deeplink (https://alitems.com/g/abcdef/?ulp={{url_encoded}}) will be used only for tmall.aliexpress.com.

Advanced Settings (Regex and Dynamic Tags)

For more complex scenarios, you can apply custom rewrite rules using regular expressions and product-specific tags.

1. Regex Rewrite Syntax:

[regex][pattern][replacement]

This allows you to search and replace parts of the product URL using regex.

Examples:

Flipkart:

[regex][/https://www.flipkart.com/(.+)/][http://dl.flipkart.com/dl/$1&affid=myaffid]

Shopee Malaysia:

[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=-]

2. Dynamic Product Tags

You can also use product-specific placeholders to customize your URLs dynamically.

Supported Tags:

  • %PRODUCT.domain% – Product domain (e.g., amazon.com)

  • %PRODUCT.price% – Product price

  • %PRODUCT.title% – Product title

  • %PRODUCT.sku% – Product SKU

  • %PRODUCT.currencyCode% – Currency code (e.g., USD, EUR)

Example:

https://click.allkeyshop.com/comparator/%PRODUCT.sku%?apiKey=12345

This dynamically inserts the product’s SKU into the affiliate URL.

Final Tips

  • After configuring your Deeplinks or affiliate IDs, test a few product pages.

  • Ensure that redirection works as expected and clicks are being tracked properly in your affiliate dashboard.

  • If tracking isn’t working, double-check the templates and encoding format.

Last updated