Content Egg Pro Plugin
Pricing
  • Content Egg WP Plugin
  • Getting started
    • Installation
    • Upgrade Free to Pro
    • Automatic updates
  • Modules
    • General information
    • Affiliate modules
      • Aliexpress module
      • Amazon module
      • Amazon No API module
      • Avantlink Products module
      • Awin module
      • Bestbuy module
      • Bolcom module
      • CityAds Products module
      • CJ Products module
      • Daisycon module
      • Ebay module
      • Envato module
      • Flipkart module
      • GdeSlon module
      • Impactradius module
      • Kelkoo module
      • Kieskeurignl module
      • Rakuten Linkshare module
      • Linkwise module
      • Lomadee Products module
      • Offer module
      • Optimisemedia module
      • Shareasale module
      • Shopee module
      • Tradedoubler Products module
      • Tradetracker Products module
      • Trovaprezzi
      • Udemy module (deprecated)
      • Sovrn (Viglink) module
      • Walmart module
      • Webgains module
    • Coupon modules
      • Admitad Coupons module
      • CJ Links module
      • Coupon module
      • Lomadee Coupons module
      • Skimlinks Coupons module
      • Tradedoubler Coupons module
      • Tradetracker Coupons module
    • Content modules
      • Bing Images module
      • Flickr module
      • Freebase module
      • Google Books module
      • Google Images module
      • Pixabay module
      • Qwant Images module
      • Related Keywords module
      • RSS Fetcher module
      • Twitter module
      • Youtube module
    • Feed modules
      • General information
      • Field mapping
      • Mass import
      • Price comparison based on feeds
      • Troubleshooting
    • Module cloning
    • Deprecated modules
    • My network isn't listed
    • Affiliate Egg integration
    • Deeplink settings
  • Set Up Products
    • How to add products
    • Price comparison websites
    • Autoblogging
    • Fill tool
    • Products page
    • How to add badge icons
  • Frontend
    • How content is displayed
    • 🆕Gutenberg blocks
    • 👉Shortcode parameters
    • Product groups/variations
    • Product sorting
    • Featured images
    • Frontend Search
    • Translation
    • Greenshift templates
  • Updating products
    • Price update
    • Product list update
    • Why prices don't update
    • Out-of-stock products
    • Price history
    • Price alert
    • Price movers
  • 🪄AI
    • Activating AI features
    • AI content generation
    • Smart groups
    • OpenAI API
    • Claude API
    • OpenRouter API
    • Custom prompts
  • WooCommerce Integration
    • General information
    • Product synchronization
    • Attributes synchronization
    • WooCommerce and autoblogging
  • Integrations
    • Affiliate Egg Integration
    • Cashback Tracker Integration
    • External Importer integration
    • WooCommerce Integration
  • Custom Templates
    • Customizing templates with CSS
    • How to install a custom template
    • 🪄ChatGTP Template Creator
    • How to create a custom template
  • Customization
    • Localization
    • For developers
    • Useful code snippets
    • REST API
    • Compatibility with themes
  • FAQ
    • How to add price comparison blocks to WooCommerce
    • How to add custom logos for merchants
    • How to import from CSV data feeds
    • How to change the date format or the date is not being displayed
    • Is Content Egg GDPR Compliant?
    • How to add offer count as a custom field
    • How to add products programmatically
  • Troubleshooting
    • Small font size in product blocks
    • Nothing found while search
Powered by GitBook
On this page
  • 1. Deeplink-Based Affiliate Links
  • 2. Direct Affiliate Links with ID Parameters
  • Multiple Deeplinks
  • Advanced Settings (Regex and Dynamic Tags)
  • Final Tips
  1. Modules

Deeplink settings

PreviousAffiliate Egg integrationNextHow to add products

Last updated 29 days ago

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.

1. Deeplink-Based Affiliate Links

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.

Example of a Deeplink:

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.

How to Configure a Deeplink

  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

2. Direct Affiliate Links with ID Parameters

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

Example Amazon Affiliate Link:

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)

How to Set Up Affiliate ID-Based Links

  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.

Do not include ?, &, or any prefixes before the parameter. Content Egg will automatically format the final URL properly when generating links.

✅ Correct:

  • tag=yourtag-20

  • aff_id=abc123

❌ Incorrect:

  • ?tag=yourtag-20

  • &tag=yourtag-20

  • yourtag-20

  • Just tag without a value

Multiple Deeplinks

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.