Geo targeting-ultimate-guide


Published on

  • Be the first to comment

  • Be the first to like this

No Downloads
Total views
On SlideShare
From Embeds
Number of Embeds
Embeds 0
No embeds

No notes for slide

Geo targeting-ultimate-guide

  1. 1. Geo-targeting Script : The Ultimate Guide Using Lambda Geo-target and others to determine the physical location of your visitors
  2. 2. What can be detemined with geo-targeting? <ul><li>Continent </li></ul><ul><li>Country </li></ul><ul><li>Region </li></ul><ul><li>City </li></ul><ul><li>Area code </li></ul><ul><li>Postal code </li></ul><ul><li>Latitude/Longitude </li></ul><ul><li>ISP </li></ul>
  3. 3. How to Use Geo-targeting on your Site (PHP) <ul><li><?php </li></ul><ul><li>require(“geoip.php”); </li></ul><ul><li>echo geoip_format(“%city, %region, %country) ; </li></ul><ul><li>?> </li></ul>Will output: Atlanta, Georgia, United States If you lived in Atlanta, Georgia Using Lambda Geo-target
  4. 4. How to Find the Nearest Major City Using Geo-targeting <?php require(“geoip.php”); echo geoip_closest_format(“%city, %region”, 2000000) ; ?> Will output: Los Angeles, California If you lived in a small town near Los Angeles, California. geoip_closest_format() returns the closest city of 2,000,000 people or more, depending on what you specify. Using Lambda Geo-target
  5. 5. How to Forward a User to a Different URL Based on Location (pt 2) <?php geoip_forward_region(“California”, “cali.html”); geoip_forward_country(“Georgia”, “ga.html”); geoip_forward_contient(“NA”, “na.html”); geoip_forward(“catchall.html”); ?> This will forward California users first, then Georgia users, then will forward all other users in North America. Finally, all users who aren’t in the above groups will be forwarded to catchall.html. Using Lambda Geo-target
  6. 6. How to display a Map with the User’s Location <script type=&quot;text/javascript&quot;> if (GBrowserIsCompatible()) { var map = new GMap2(document.getElementById(&quot; map_container &quot;)); map.setCenter(new GLatLng( <?php echo geoip_latitude . “, “ . geoip_longitude(); ?> ), 6 ); map.setUIToDefault(); var point = new GLatLng( <?php echo geoip_latitude . “, “ . geoip_longitude(); ?> ); map.addOverlay(new GMarker(point)); } </script> Using Lambda Geo-target and Google Maps <script src=&quot;;v=2&amp;sensor=false&amp;key= api_key &quot; type=&quot;text/javascript&quot;></script> Put this somewhere after your <body> tag: Put this in between your <head> and </head> tags: Replace api_key with your Google Maps API key. Replace map_container with the id of the <div> where you want the map to go. Replace the number 6 with the zoom level you want.
  7. 7. Displaying the User’s location on the Maps The end result will look something like this. There are all sorts of neat things you can do with Google maps and the user’s location. Get creative.
  8. 8. How Does Geo-targeting help SEO? <ul><li>Provides more relevant content to the user (Search Engines notice this) </li></ul><ul><li>Localize text based on country and local terminology (Users will search for things as they are used to spelling it) </li></ul><ul><li>Display local contact information to give a sense of locality </li></ul><ul><li>Forward a user to a local site (e.g Forward UK users to </li></ul>
  9. 9. Common Mistakes <ul><li>Don’t display the region for locations outside of the United States. Most countries simply list the city in country (e.g. Milan, Italy). In the US, it is more common to display the city and state. </li></ul><ul><li>If you are trying to convince the reader that you are in the same city as them, display the nearest major city. It is much more believable than to list a small town that the user may be from. Lambda Geo-target is currently the only script that can do this. </li></ul><ul><li>Don’t forget to localize all aspects of a page. Don’t list your location as London, England and then have a picture of a major US city elsewhere on the page. </li></ul><ul><li>If you are changing the language based on location, do not forget to give the user an easy option to switch languages. Many countries have multiple languages and not being able to easily switch will put off some users. </li></ul>
  10. 10. Don’t Forget to Update your Database! <ul><li>The physical location of IP addresses changes from time to time. Lambda Geo-target offers free database and script updates for life. Not updating can result in less accurate results. </li></ul>
  11. 11. Beware of Javascript <ul><li>Using Javascript to display the geo-targeted data can be risky </li></ul><ul><ul><li>Other website owners can use your script to leech off your database, often without you knowing. </li></ul></ul><ul><ul><li>Using Javascript can result in a lag time between the time the page is loaded and the time it is displayed and/or the user is forwarded. </li></ul></ul>
  12. 12. Beware of Third Party APIs <ul><li>If you are using a third party API to grab the geo-data, beware. These services can do down at any time and leave your site broken while your visitors will go elsewhere. </li></ul><ul><li>Having to connect to a third party makes your page load slower. </li></ul>
  13. 13. You’re All Set! <ul><li>Use Geo-targeting to: </li></ul><ul><ul><li>Increase conversions </li></ul></ul><ul><ul><li>Increase CTR </li></ul></ul><ul><ul><li>Help users find other users close to them </li></ul></ul><ul><ul><li>Decrease the amount of time they spend filling out forms </li></ul></ul><ul><ul><li>Improve overall user experience! </li></ul></ul>