This site is archived.

Geotargetting Content in Drupal

Code & Development

Presenter:

Additional Presenters:  Michael Priest

Track

Code & Development

Experience

Intermediate

Focus

Curious | Developer

Geotargetting Content in Drupal

45 minutes (+15 minutes Q&A)

Room:

tags

development | Geo Location | Code | Case Study

Come learn strategies for geo-targetting content to users of your Drupal sites. This session will cover the tools used for achieving geo-targetted content. Case studies will be presented on how these tools can be used to selectively present content based on where they are in the world.

Drupal has a number of tools for geotargetting information for people once they are logged in or have given you an address to work with. When it comes to targetting content for users where you only know an IP address, Drupal doesn’t really offer much out of the box. However, your web server itself can be a useful tool in delivering the data you need to geolocate your content, and there are a number of tools available for making more relevant information come up when people initially hit your site.

This session will focus on the following techniques for geotargetting content:

  • How to ‘plan’ for geotargetting, from a technical perspective
  • Benefits and drawbacks of various GeoIP databases and versions
  • Using mod_geoip in Apache to get information such as a visitor's country, city, state, zip code, latitude and longitude
  • Special caching and performance scenarios: keeping sites fast while geotargetting
  • Integrating this data with Boost and Varnish to present alternate versions of cached content
  • Creating cache-safe, geo-aware blocks
  • Integrating data with Google Maps and OpenLayers
  • Looking forward: The HTML 5 Geolocation API Specification

Resources