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

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

Описание и применение

Библиотека Amazon Store автоматически перенаправляет ссылки на товары Amazon в нужный региональный магазин, используя язык браузера и часовой пояс, упрощая управление ссылками и повышая комиссию.

Задача

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