(已弃用)使用 Amazon OneLink 使全球论坛上的联盟链接更加便捷

本指南已弃用。OneLink 现在本应无需额外脚本即可工作(我说“本应”是因为数月来它对我及其他用户均失效,热门用户论坛上大量相关帖子已证实这一点)

无论如何,因此您不再需要此内容。希望他们能修复非脚本解决方案!!

各位,

挑战:

我的问题如下。我拥有一个全球性论坛,希望引导用户前往适合其所在地区的亚马逊本地站点以使用我的联盟链接。理想情况下,我希望使用一个亚马逊链接,即可为支持地区列表内的所有全球客户服务。最初我采用了一个笨拙的方案:为每个产品链接分别设置一个美国链接、一个英国链接……以此类推。

可能的解决方案:

  • 官方 discourse-affiliate 插件?说实话我还没试过。
  • 新晋方案:亚马逊 OneLink。该功能似乎仅在美国联盟网站提供,但如果您身处其他地区,请勿因此却步……

使用 OneLink 的优势:

  • 安装时只需添加一个主题组件,因此在这方面简单且影响较小。

在 Discourse 上使用 OneLink:

  • 您需要在 /body 部分的闭合 </body> 标签之前,为 OneLink 脚本 添加一个主题组件。请忽略因 & 符号产生的错误——如果您将其改为 %26,脚本会奇怪地失效。示例如下:
    <!DOCTYPE html><div id="amzn-assoc-ad-blah-blah-code"></div><script async src="https://z-na.amazon-adsystem.com/widgets/onejs?MarketPlace=US&adInstanceId=blah-blah-code"></script>
  • 将该主题组件添加到所有用户可选的主题中。
  • 重要:为防止违反联盟协议(该协议禁止您在本地使用亚马逊商标,除非内容实时源自其服务器),请使用设置项 onebox domains blacklist 屏蔽所有亚马逊链接的“一键直达”(one-boxing)功能。链接仍然有效,但外观显然会差一些;不过,您可以将其替换为官方联盟链接。
  • 仔细阅读协议。按照协议要求,使必要的免责声明(如“作为亚马逊联盟成员……")清晰可见。
  • 同时考虑屏蔽联盟链接中包含的亚马逊图片 URL,以防止这些图片被本地上传——这可能会违反您的联盟协议条款。请使用设置项 disabled image download domains

该链接包含您的 ID 和账户密钥,因此请务必从 OneLink 网页获取真实代码。

完成后,每当您在网站上点击亚马逊链接时,应实现以下两点:

  • 记录该访问源自您的联盟关系。
  • 在客户浏览器的新标签页中打开对应于其最后登录的亚马逊网站(希望是其本地商店)的链接。

接下来,您需要阅读 OneLink 网站,确保您已在所有支持的地区注册了 ID,并将它们与您的美国账户关联。

我相信您在每个地区仍会获得“积分”——亚马逊对此表述尚不明确——待我积累更多经验后,我将更新本指南。

局限性:

  • 显然仅支持亚马逊……
  • 不会将积分汇总到一处,它们仍会分别累积到各个地区。
  • 令人烦恼的是,它似乎也会打开主链接(例如美国站点),因此您必须从该页面返回才能回到论坛……
  • 对于启用了广告拦截的用户可能无法生效。

希望这对您有所帮助!

欢迎对本指南提出任何问题或反馈……

12 个赞

So just an update. After a little bit of experience and having my account closed once, I’ve done the following:

  • Amazon one-boxing remains blacklisted so as not to generate unauthorised trademarked images locally.
  • I’ve been very careful to make the required disclaimers visible and obvious as per the agreement “As an Amazon Assoc …”
  • I’ve also ‘blacklisted’ Amazon’s image sources to prevent local uploading of images from Amazon to prevent any rule transgression. This has the added benefit of saving you server space and leveraging their CDN presumably :slight_smile:

Added this to the guide above.

7 个赞

Hi Robert,

Now we’re working on Amazon OneLink, and have some questions for you.
Q1: Do you mean we need to create our own Theme component for the OneLink? Can you give me the Theme component template?

Q2: We got the error about the ‘Named entity expected. Got none.’ from the Amazon OneLink Script. And how to fix this error?

We tried many way with Amazon OneLink, but now it’s not working. We look forward to hearing from you soon. Thank you very much for your time.

Sorry to hear you are having some frustrations :slight_smile:

Yes, and you’ve already quoted it above, it’s just that single entry in /body making sure you update the id and InstanceId . Looks like you’ve done that. It’s so simple I’ve not even bothered to host it on GitHub. However …

You have not copied the example exactly. You are missing https:. I’m not sure if that’s the issue though, but just pointing that out. Try adding it. I get warning errors on the Theme editor but it still works, try ignoring them (so long as you can save).

Hope that helps! :slight_smile:

1 个赞

Hi Robert,

Thanks for your reply. It’s a big help.

Let me come back to the first Question. I changed the ‘&’ to ‘&%26’, there is no error in this script. Is it correct for the component.

I have another question. Is the OneLink only for tracking the international advertising to link the US account, Not showing the advertising on the website, right? We still need to copy and paste the Amazon Advertising (Banners, Product Links etc) on our website.

Actually, I think this may be unnecessary, apologies I might remove it from the OP. Try it with just & - ie do not change it.

It is for tracking internationally (hence ‘one-link’) Remember to link your international amazon affiliate accounts on Amazon Affiliate .com. Follow their guide

Yes, this is manual with this approach, but you can automate with some home grown javascript. Experiment! I’ve used the Custom Layout Plugin and the html widget to rotate adverts on the side from a hand-picked list. Get the raw links from the Site Strip on Amazon by logging into it with your affiliate account. Be wary that some products are not available in all regions.

image

2 个赞

I got it. Thank you very much for your tips. I will try it on my website papasasa.com

2 个赞