Mobile app version of vmapp.org
Login or Join
Gretchen104

: Using cookies on a site to redirect based on location - Googlebot crawling I've recently began working on a Wordpress site that uses cookies to redirect a user to the appropriate regional page

@Gretchen104

Posted in: #Cookie #Geolocation #Googlebot

I've recently began working on a Wordpress site that uses cookies to redirect a user to the appropriate regional page based on their location with geolocation.

One thing I've noticed is that this might have a detrimental effect on my site as I don't think spiders can crawl the site fully as they can't store cookies??

Am I right in assuming that Googlebot does not store cookies and if so then have I completley gone about implementing my site in the wrong manner?

I've done a bit of research on this and have not seen a definitive answer. I've come here to see if the community would have more information.

Any help is greatly appreciate.

Thanks

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Gretchen104

1 Comments

Sorted by latest first Latest Oldest Best

 

@Samaraweera270

In short, you're right that search engines don't typically read or store cookies. However this shouldn't in itself cause problems for you.

You haven't said which, but you're using either the user's IP address or browser language setting to determine which regional page to redirect to. Presumably, there's also a default region which is used if your conditions aren't met. You then set a cookie so the site "remembers" where to send a repeat visitor.

Most search engines crawl from a single geographic location and don't send Accept-Language HTTP headers, so can't necessarily "see" how these conditional redirects work. As a result, we need to ensure that all versions are crawlable and provide information (like hreflang) which identifies the intended audiences for our content.

Google have recently tried to address this with "locale aware crawling", whereby they issue Accept-Language headers and crawl from multiple, geographically diverse IP addresses. However, we don't know much more detail than that, so we can't make any safe assumptions about how this works in practice.

So:


Ensure that search engines can fully access all regional pages (i.e., crawlable links between them)
Use hreflang – this is currently supported by Google and Yandex
Use lang attribute of <html> with ISO language or language-country pairs to indicate target for other search engines (Bing, etc.), e.g., <html lang="en-gb">

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme