Loading page...Загружаем страницу...正在加载页面...
AtlasRepo

Why I Built Amazon Store (So I Don't Have to Pick a Country)

说明与用途

Amazon Store 根据浏览器语言和时区自动将亚马逊商品链接重写为正确的地区商店,简化链接管理并保持联盟佣金。

问题

Site owners with international audiences struggle to link Amazon products because Amazon has multiple regional stores, each with its own catalog, currency, and affiliate program. Hardcoding a single store loses commissions or requires maintaining many region-specific links.

结果

Site owners can write one link per product and automatically serve the correct regional Amazon URL, preserving commissions and simplifying maintenance.

工作流

  • Include Amazon Store script via CDN or npm bundle
  • Add a link element with data-amazon-asin and optional data-amazon-text
  • Initialize the library on DOMContentLoaded with AmazonStore.enhanceAll({ tag: 'your-associates-tag' })
  • The library detects visitor region and rewrites the link to the correct Amazon domain and affiliate tag
  • Optional: use data-amazon-region to force a store or data-amazon-search for search‑term links
  • Optional: use the store grid renderer to let visitors choose their region

证据

Amazon Store is a small, dependency‑free JavaScript library that solves this properly.

来源

It does this by looking at browser signals first — navigator.languages and the visitor's time zone…

来源

  • 记录日期: 2026-09-02T14:27:47.050Z