Deeplink settings
Last updated
Last updated
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.
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.
Generate a sample affiliate link for any product page (not the homepage) using your affiliate account or tools provided by the network.
Identify the product URL inside the link.
Replace the product URL portion with the placeholder {{url_encoded}}
.
Paste the new Deeplink into the Deeplink URL field in Content Egg.
Example Template:
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.
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.
yourtag-20
is your affiliate tracking ID
tag
is the parameter name used by Amazon (this may vary across networks)
Generate a few affiliate links using your advertiser’s website or affiliate dashboard.
Identify the common tracking ID — this will appear the same across all links.
Locate the tracking parameter name (e.g., tag=yourtag-20
, aff_id=abc123
).
Enter the full parameter (name + value) in the domain settings within Content Egg.
Do not include ?
, &
, or any prefixes before the parameter. Content Egg will automatically format the final URL properly when generating links.
tag=yourtag-20
aff_id=abc123
?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.
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
.
For more complex scenarios, you can apply custom rewrite rules using regular expressions and product-specific tags.
This allows you to search and replace parts of the product URL using regex.
Flipkart:
Shopee Malaysia:
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
)
This dynamically inserts the product’s SKU into the affiliate URL.
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.