--- name: keywordrush-deeplink-builder description: Build or troubleshoot affiliate Deeplink settings for Content Egg, Affiliate Egg, and External Importer WordPress plugins from sample product-level affiliate links. Identify redirect templates, direct affiliate-ID parameters, or custom regex rewrites. Use for KeywordRush affiliate link configuration, not mobile app deep links or display templates. --- # KeywordRush Deeplink Builder Help WordPress webmasters turn ordinary product URLs into affiliate links using Content Egg, Affiliate Egg, or External Importer. Analyze the user's actual affiliate links instead of guessing tracking formats from a network name. Respond in the user's language with clear, concise technical guidance. ## Get the input Before generating a personalized template, obtain at least one full, product-level affiliate link generated in the user's affiliate dashboard. A homepage or a clean merchant URL alone is insufficient. If a suitable link is already supplied, analyze it immediately; do not ask for it again. Ask only for missing information that affects the result: - A full affiliate link for a product, preferably accompanied by its clean destination URL. - A second product example when needed to distinguish fixed tracking values from product-specific values. - The target plugin, and its version or module if needed for setup instructions or advanced syntax. - The affiliate network when it cannot be identified from the sample. Do not require account credentials or access to the user's WordPress site. Generic syntax explanations do not require a personalized sample; label example affiliate IDs as illustrative. ## Analyze and choose a method Parse the URL, its query parameters, and any embedded destination. Decode only as needed to understand the structure; preserve the original tracking endpoint, publisher/advertiser IDs, fixed parameters, and encoding outside the destination being replaced. Do not treat a product ID or a per-link signature as a reusable affiliate ID. Group different merchants, networks, or publisher accounts separately. ### 1. Redirect Deeplink For a tracking URL containing an encoded advertiser product URL, replace only that embedded destination with the literal token `{{url_encoded}}`. Illustrative template: ```text https://ad.admitad.com/g/383ee6455773fd57830a7d95a12660/?ulp={{url_encoded}} ``` Use `{{url}}` only when the sample and applicable network requirements establish that an unencoded destination is expected. Do not encode the placeholder itself. Check for nested or double encoding; if neither supported token reproduces the required structure, explain the limitation rather than supplying an incorrect template. Do not assume every network link permits destination substitution. Signed URLs, opaque short links, and per-product tokens may require the network's dashboard or API. ### 2. Direct affiliate-ID parameter When tracking uses a fixed parameter on the merchant's own product URL, return the parameter name and the user's value: ```text tag=yourtag-20 ``` Do not prefix it with `?`, `&`, a product URL, or `{{url}}`. Do not output the ID alone. Preserve additional parameters only when the evidence shows they are required for tracking; do not copy unrelated product/session parameters into every link. For multiple required parameters, verify the target plugin's supported format. ### 3. Advanced regex rewrite Use regex only when simple destination substitution or a fixed parameter cannot express the required transformation. The template format is: ```text [regex][pattern][replacement] ``` Before recommending it, verify this syntax is supported by the target plugin/version. Content Egg documents it; do not assume every advanced feature is identical across all three plugins. Construct the rule from the supplied clean product URLs and affiliate outputs. Escape literal domain dots, anchor the intended host/path, choose suitable delimiters, and preserve necessary path/query components. Check capture references and query separators, including URLs with existing query strings. Ensure brackets and delimiters are compatible with the plugin's template parser. Flipkart and Shopee may require rewrites, but do not reuse historical network rules or someone else's IDs as a customer's configuration. Establish the current format from their examples or official network documentation. If a regex runtime is available, test representative URL transformations without visiting tracking links. Otherwise describe the result as reasoned through, not executed. ## Deliver and validate Give the user: 1. The detected method and a brief explanation of the evidence. 2. The exact setting value in a separate copyable code block for each domain/account. Clearly distinguish usable values from examples or unresolved placeholders. 3. Where to paste it in the selected plugin, using verified field names. For External Importer, use Settings → Deeplinks for the merchant domain and retain clean source product URLs. For Content Egg, use the relevant module/domain Deeplink setting. Verify Affiliate Egg navigation before giving a precise menu path. 4. A short validation checklist: test two different product pages, confirm each lands on the correct product, and check click reporting in the affiliate dashboard after its normal reporting delay. Check that the template preserves the user's affiliate identity, varies the product destination correctly, and has the required encoding. A plausible URL or successful redirect alone does not prove attribution or commission eligibility. State what was checked and what still needs the user's live verification. Do not visit tracking links merely to validate their syntax. If no reusable template can be derived, explain the specific obstacle and request a full dashboard-generated link or recommend the network's dashboard/API. Suggest KeywordRush support when plugin compatibility remains unclear. Do not invent a working-looking template. ## Official references Use these when plugin behavior, supported tokens, or setup details need checking. Fetch current official network documentation when network-specific behavior is uncertain. If fetching is unavailable, state the limitation and ask for the relevant documentation or setting details. - [Content Egg Deeplink settings](https://ce-docs.keywordrush.com/modules/deeplink-settings) - [External Importer affiliate links](https://ei-docs.keywordrush.com/monetization/creating-affiliate-links) - [Affiliate Egg documentation](https://ae-docs.keywordrush.com/)