Welcome to WebmasterWorld Guest from

Forum Moderators: brotherhood of lan & mack

Message Too Old, No Replies

How to identify a country

Different HREF depending on the country



8:58 am on Sep 2, 2002 (gmt 0)

10+ Year Member

I want to sell a book to US and UK customers.
I have set up HREFS to amazon.co.uk and amazon.com.

Is there a certain country field coming in to point to the correct HREF?

Or is it better to have different pages for US and UK?



4:37 pm on Sep 2, 2002 (gmt 0)

WebmasterWorld Senior Member lorax is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

Hi jeffbro,
Welcome to WebmasterWorld.

I'm not sure what the best solution is. I know that I am a registered user at Amazon US and that when I went to buy a book that was only available on their UK web site the site recognized me when I logged in. That being said, they have a nice cross-website recognition system of users but a search on the US site did not yield the book I was looking for.

You'll be hard pressed to determine where the customer is located so I suggest you go for the simple approach and provide both links. You could cite the above example as part of the reason why you provide both if need be.


6:30 pm on Sep 2, 2002 (gmt 0)

WebmasterWorld Administrator jatar_k is a WebmasterWorld Top Contributor of All Time 10+ Year Member

Welcome to WebmasterWorld [webmasterworld.com] jeffbro

There are ways to accomplish this but I think lorax is right, for now I would just offer both links. If you want to take a look at a thread on this very subject there's one here.

Getting the users country from the ip address [webmasterworld.com]


11:35 am on Sep 3, 2002 (gmt 0)

10+ Year Member

thanks very much - i will read the article


1:04 pm on Sep 3, 2002 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member

have experienced good results with geobutton (also mentioned in the above linked thread). Only problem you will find is when it comes to identify AOL users. Check out their scripting language to add country specific code-segments/content.

Regarding Amazon, why not setup two links below your offer/review.
One telling to "Buy it now from Amazon.co.uk" and the other like "Get it from Amazon.com". Works on one of my sites OK.


Featured Threads

Hot Threads This Week

Hot Threads This Month