Re:Is running ads on a programming blog worth it?
by unwiredben on Monday January 26, 2015 @11:27AM
(#8947826)
navigator.language will return a string like "en-US", "en-GB", or "fr-FR" depending on the user's selected locale. That could be used to map different Amazon URLs, although it looks like you may get a fair number of en-US false reports. See https://html.spec.whatwg.org/multipage/webappapis.html#navig....
You can run a small snippet of JS that replaces all the links with amazon.co.uk to amazon.com. You have to figure out that the user is from the US (maybe reading the Accept-Language, don't know if that's reliable)