1

I'm developing a website that allows users to share their location via JavaScript. Based on that location, either the content of the current page will change, or it will redirect a user to a page with content relevant to their location. For users that don't share, I'll present relevant content that I would expect to also get indexed by search bots.

Since it is fairly well known that Google's crawlers do process JavaScript, is there any evidence to suggest that Googlebot shares geo-location information? I ask mainly because I'm wondering what the impact would be on my site's ability to be indexed correctly.

1

Googlebot does not use JavaScript or the GeoLocation HTTP header to indicate its geographic location. Googlebot will appear to be a visitor that does not have these features.

Googlebot does come from a real IP address. If you were determining location from that IP address, you would likely redirect Google to a page appropriate for a Mountain View, California user.

Google has a blog post that tells how to treat Googlebot in these cases:

Geolocation: Serving targeted/different content to users based on their location. As a webmaster, you may be able to determine a user's location from preferences you've stored in their cookie, information pertaining to their login, or their IP address. For example, if your site is about baseball, you may use geolocation techniques to highlight the Yankees to your users in New York.

The key is to treat Googlebot as you would a typical user from a similar location, IP range, etc. (i.e. don't treat Googlebot as if it came from its own separate country—that's cloaking).

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.