Skip to content
View in the app

A better way to browse. Learn more.

Web Designer Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

getting location for SEO

Featured Replies

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

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.

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.

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

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.