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

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

Description and use

Amazon Store automatically rewrites Amazon product links to the correct regional store based on browser language and time zone, simplifying link management and preserving affiliate commissions.

Problem

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.

Outcome

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

Workflow

  • 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

Evidence

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

Source

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

Source

  • Record date: 2026-09-02T14:27:47.050Z