Advanced Features
Auto-Inject Amazon Affiliate Tags (PRO)
Forgetting to append ?tag=yourtag-20 to an Amazon link means clicks you earned pay you nothing. URL Shortify's Amazon Affiliate Tags integration fixes this: set your associate tag once per marketplace, and every short link pointing at Amazon is tagged automatically when a visitor is redirected. This is a PRO feature configured under Settings → Integrations.
PRO feature
Amazon Affiliate Tags is available in URL Shortify PRO.
What is the Amazon Affiliate Tags integration?
Amazon Affiliate Tags is a URL Shortify PRO integration that injects your Amazon Associates tracking ID into any short link whose destination is an Amazon URL. You store one tag per Amazon marketplace (US, IN, UK, DE, FR, ES, IT, JP), and URL Shortify attaches the correct tag for the visitor's destination at redirect time.
How it works
When someone clicks a short link that points at an Amazon URL, URL Shortify:
- Detects the Amazon marketplace from the destination host (for example
amazon.com,amazon.co.uk,amazon.de). - Looks up the affiliate tag you configured for that marketplace.
- Removes any existing
tag=parameter on the URL to avoid conflicts. - Appends your tag and redirects the visitor to the tagged destination.
The visitor lands on the same Amazon product page, only with your affiliate attribution attached. The tag is swapped server-side during the redirect, so there is no client-side flash or extra hop.
Supported Amazon marketplaces
Each marketplace has its own tag field, so a US tag is never attached to a German link (which would earn nothing and look wrong).
| Marketplace | Field label | Domain |
|---|---|---|
| United States | US (amazon.com) | amazon.com |
| India | IN (amazon.in) | amazon.in |
| United Kingdom | UK (amazon.co.uk) | amazon.co.uk |
| Germany | DE (amazon.de) | amazon.de |
| France | FR (amazon.fr) | amazon.fr |
| Spain | ES (amazon.es) | amazon.es |
| Italy | IT (amazon.it) | amazon.it |
| Japan | JP (amazon.co.jp) | amazon.co.jp |
How to set up Amazon affiliate tags

Step 1 — Open the Integrations settings
Go to URL Shortify → Settings → Integrations and find the Amazon Affiliate Tags section.
Step 2 — Enable tag injection
Turn Enable Amazon Affiliate Tag Injection to On.
Step 3 — Add your tags
For every Amazon Associates marketplace you belong to, paste your tag into the matching field (US (amazon.com), IN (amazon.in), and so on). Find each tag in that marketplace's Associates dashboard under Account Settings → Tracking IDs. Tags usually look like yourname-20 or yourname-21. Paste only the tag value — no ?tag=, no URL fragments.
Leave a marketplace blank if you do not have an account there. Links to that storefront pass through unmodified rather than being tagged with an invalid value.
Step 4 — Save
Click Save Settings. From the next click onward, every Amazon short link is tagged automatically.
Verify it works
- Create a short link pointing at any Amazon product URL (for example
https://www.amazon.com/dp/B08N5WRWNW). - Open the short link in a browser.
- Once the page loads, check the final URL in the address bar — you should see your configured
?tag=yourtag-20appended.
If the destination already contained a tag= parameter, URL Shortify replaces it with yours — your attribution always wins.
Opt out for a specific link
To stop a particular Amazon short link from carrying your tag — say you are linking to a competitor's product for comparison — use the url_shortify_apply_amazon_tag filter in your theme or a custom plugin:
add_filter( 'url_shortify_apply_amazon_tag', function ( $apply, $url ) {
// Disable tag injection on a specific destination URL.
if ( false !== strpos( $url, '/dp/B08N5WRWNW' ) ) {
return false;
}
return $apply;
}, 10, 2 );
Two related filters let you go further: url_shortify_amazon_affiliate_tag overrides the matched tag value before injection, and url_shortify_amazon_region overrides the marketplace detected from the URL.
Best practices
- Verify compliance. Most Amazon Associates programs require an affiliate disclosure on the linking page. URL Shortify tags the link, but disclosing the relationship is still your responsibility.
- Avoid double tagging. If you run another affiliate plugin alongside URL Shortify, disable Amazon tag injection in one of them so you do not send conflicting
tag=parameters. - Track performance. Use link tracking to see which Amazon links get clicks, then reconcile against Amazon's own reporting to attribute revenue to specific posts.
Conclusion
Amazon Affiliate Tags removes manual tag hygiene from affiliate work: set a tag per marketplace once, and every Amazon short link is attributed correctly at redirect. To connect other services, see the Integrations overview.
FAQs
Do I have to add the affiliate tag to every link manually?
No. Once you enable the integration and store a tag per marketplace under Settings → Integrations, URL Shortify injects the correct tag automatically whenever a short link redirects to an Amazon URL. You never edit individual links to add ?tag=.
What happens if a link already has a different Amazon tag?
URL Shortify strips the existing tag= parameter and replaces it with the tag you configured for that marketplace. Your affiliate attribution always wins, so links imported from elsewhere or shared by others still credit your account.
Which Amazon marketplaces are supported?
Eight marketplaces have their own tag field: US (amazon.com), IN (amazon.in), UK (amazon.co.uk), DE (amazon.de), FR (amazon.fr), ES (amazon.es), IT (amazon.it) and JP (amazon.co.jp). URL Shortify matches the destination host to the right field and applies only that marketplace's tag.
Can I stop tagging on one specific link?
Yes. Use the url_shortify_apply_amazon_tag filter and return false for the destination URLs you want to exclude. Related filters url_shortify_amazon_affiliate_tag and url_shortify_amazon_region let you override the tag value or the detected marketplace for advanced cases.
Is Amazon Affiliate Tags free?
No. It is part of URL Shortify PRO, configured under Settings → Integrations. The free version does not inject affiliate tags into short links.