It seems, that the fairly new amzn.eu
shortlinks are not rewritten by the plugin, does anyone have the same issue?
@rishabh any plans to add amzn.eu
Link support to rewrite the links as well?
I donât there are any plans at the moment, but pinging @zogstrip to see if he has any thoughts about this addition.
Iâd be happy to have the plug-in support this new domain.
@jrgong would you like to make a pull request to add support for this domain?
I am not a developer, so I wonât be able to do that unfortunately. But maybe @Ahmed_Gagan can do that
Hi @zogstrip
Yes I can make a PR for the fix.
I hope that in the future I can support many other platforms besides amazon, like I deploy affilate with digital products and add custom UTM feature when there is an outlink from my website.
Hi wondering if any progress on this? As it seems that amazon.ca uses short links. Imagine that most Amazon sites are now using short links.
Thanls
a.co
links are used by default when sharing from amazon.com
as well now.
From European countries, it uses amzn.eu
.
I used a.co
and amzn.eu
here with the plugin enabled:
It created oneboxes with full links and with the attached affiliate tag. So I guess it already works, and nothing has to be done?
On my site the a.co
links are inline with other text and donât get the affiliate tag added.
Edit: just to be sure, I updated everything and rebuilt the HTML for a post that has a.co
in it, and the tag isnât added. I tried both inline and onebox, but the onebox doesnât appear. The link is in this format: a.co/d/some-chars
.
Does it work if you disable the affiliate plugin?
I will need to retest. So it expands the short link and adds the affiliate code ?
Even on Amazon I find it often takes a couple of triesto get the full link copied to clipboard with the affiliate code.
The reason it works fine with the onebox and not with inline links is that they are treated differently. In order to create a onebox, the system first goes through all redirects to fetch the âfinalâ unshortened URL. And because the final URL is recognized by the affiliate plugin, it gets rewritten. Unfortunately, the inline links do not.
Iâll submit a PR to affiliate plugin later with the support for
a.co
amzn.eu
amzn.to
Any other short domains come to mind?
From my observations, a.co
and amzn.to
are both short for amazon.com
, so IMHO it would be safe to use affiliate_amazon_com
tracking code.
amzn.eu
translates to amazon.de
for me, but Iâm not sure if it might redirect to, say, amazon.fr
for you. To accommodate both, Iâll add a new plugin setting for affiliate_amazon_eu
.
Update:
PR submitted:
Works great, thanks for putting some time in to this @Overgrow