November 22, 201213 yr just a quick question would i be able to get a users location and use it for SEO purposes. for example stuff for sale in YOUR TOWN? Thanks in advance
November 25, 201213 yr Of course. HTML5 offers Geolocation, which is nice. A lot of web bots and crawlers don't use too much javascript, so you'd need to get the Geolocation info and send it to the server through the URL. The catch, however, is that the user must accept to show his/her location.
November 27, 201213 yr There are also some services out there that will try to base the users location on their IP. This works well but might not return the correct location in some cases, especially on mobile browsers as the IP might be assigned to the telecoms company's head office or something like that. Always worth giving it a try and see if it works for you in most scenarios. http://www.ip2location.com/ is an example.
November 27, 201213 yr If you try and display a page based on the users IP address, then the only page that will be crawled is the location of the crawlers Ip address. You'd be able to create pages based upon a users Ip address, sure. But it's getting these pages indexed by Google that would be the problem. You could have the location saved in a database and have that feed a sitemap that has been submitted to Google. Any new locations would then be added to the list of pages and would be crawled. Another way would be to have a database that is full of towns/cities and use that for when someone lands on a page like "sell-your-stuff-london" would present the user with a london page. A quick of indexing these pages would be to have a a good internal link structure. So there would be a page like domain.com/locations that list all the locations. Maybe have a top level for counties, then the next page would split down into towns in that county. All these links would be indexed by Google and have these location pages crawled
Create an account or sign in to comment