=== WP Engine GeoIP === Contributors: wpengine, markkelnar, stevenkword, stephenlin, ryanshoover, taylor4484 Tags: wpe, wpengine, geoip, localization, geolocation Requires at least: 3.0.1 Tested up to: 4.2.2 Stable tag: 1.1.0 License: GPLv2 or later License URI: http://www.gnu.org/licenses/gpl-2.0.html Create a personalized user experienced based on location. == Description == WP Engine GeoIP integrates with the variables on your WP Engine site to display content catered to the visitor’s location. With the ability to access variables from as broad as country to as specific as latitude and longitude, your website can now display geographically relevant content. = Geo-Marketing = * Create marketing campaigns targeted only at certain locations. = Localization = * Redirect incoming traffic to content in the local language or currency. * Businesses with local branches can direct customers to a relevant physical location or local microsite. = Ecommerce = * Filter out merchandise or services that are not available in a certain locale. * Display country-specific shipping, tax, or sales information. = Legal Requirements = * Filter required legal notices from countries for whom those notices may not be relevant. = * Please Note * = This plugin will only function on your [WP Engine](http://wpengine.com/plans/?utm_source=wpengine-geoip) Business, Premium or Enterprise level account. This will not function outside of the WP Engine environment. == Installation == 1. Upload `geoip` to the `/wp-content/plugins/` directory 2. Activate the plugin through the 'Plugins' menu in WordPress Please view the 'Other Notes' tab to see all of the available GeoIP shortcodes == Location Variable Shortcodes == You can use any of the following location variable shortcodes to return the various geographic location the user is visiting your site from: 1) Continent: `[geoip-continent]` 2) Country: `[geoip-country]` 3) Region (State): `[geoip-region]` 4) City: `[geoip-city]` 5) Postal Code: `[geoip-postalcode]` 6) Latitude: `[geoip-latitude]` 7) Longitutde: `[geoip-longitude]` 8) Location: `[geoip-location]` = Example = `Hi, and welcome to [geoip-city]! The place to be in [geoip-region],[geoip-country].` A visitor from Austin, Texas would see the following: `Hi, and welcome to Austin! The place to be in TX, US.` == Localized Content == 9) Content: `[geoip-content country="US"]Your US specific content goes here[/geoip-content]` The content shortcode allows you to hide or show specific content based on visitor geographies: Below are all the supported geography options, this allows to you SHOW content for only specific locations: * continent * country * areacode * region * city * postalcode Below are all the supported negative geography options, this allows to you HIDE content for only specific locations: * not_continent * not_country * not_areacode * not_region * not_city * not_postalcode = Examples of the Content Shortcode = This will display “Content just for US visitors” strictly for visitors viewing from the United States. `[geoip-content country="US"] Content just for US visitors [/geoip-content]` This will display “Content just for everyone in Texas and California” strictly for visitors from Texas and California. `[geoip-content region="TX, CA."] Content just for everyone in Texas and California [/geoip-content]` You can mix and match geography and negative geography options to create verbose logic in a single shortcode: `[geoip-content country="US" not-city="Austin"]Content for US visitors but not for visitors in Austin[/geoip-content]` == Testing Parameters == You can use the following URL parameters to test how your localized content will appear to visitors from various geographic locations. You can add any of the parameters below to any URL of a page using the GeoIP shortcodes or API calls: Spoof visitor from the state of Texas: `yourdomain.com/?geoip®ion=TX` Spoof visitor from the United States: `yourdomain.com/?geoip&country=US` Spoof visitor from Austin, Texas `yourdomain.com/?geoip&city=Austin` Spoof visitor from the U.S. zip code 78701: `yourdomain.com/?geoip&zip=78701` Please note: full page redirects and TLD redirects still need to be implemented with the necessary API calls. == Frequently Asked Questions == 1) Will this work outside of the WP Engine hosting account? No, this will only work within the WP Engine environment. This will not work for sites hosted on other web hosts. 2) Are there any other restrictions to using this plugin? Yes. Even though the GeoIP variables on the server are available to Business, Premium and Enterprise customers, you will still need to reach out to the [Support Team](https://my.wpengine.com/support#general-issue) to fully enable GeoIP for your site. For Personal and Professional customers who are interested in GeoIP, please contact the [Support Team](https://my.wpengine.com/support#general-issue) as well. 3) What variables do I have access to? Continent, country, state, city, zip, latitude, longitude. 4) How do I sign up for a WP Engine Account?: That’s easy! [Signup here](http://wpengine.com/plans/?utm_source=wpengine-geoip). 5) I installed the plugin and used a shortcode or API call and it isn’t working. Please contact the WP Engine [Support Team](https://my.wpengine.com/support#general-issue). == Screenshots == 1. Authoring a new post with GeoIP shortcodes 2. An example post using GeoIP shortcodes == Changelog == = 1.1.0 = - Adds continent shortcode - Adds content shortcode for localized geographic content - Adds testing parameters to spoof visitor location - Bumps version number for WP 4.2.2 compatibility = 1.0.2 = - Renames longitude environment variable - Bumps version number for WP 4.2 compatibility = 1.0.1 = - Changes to readme.txt = 1.0.0 = - Initial release = 0.7.0 = - Removes plugin dependency management artifacts = 0.6.0 = - Add shortcodes for postal code, latitude and longitude. = 0.5.0 = - Adds shortcodes for city, region, and country. - Displays admin notice when GEOIP environment variables are absent. - Formatting updates to readme and file headers. = 0.4.0 = - Code cleanup for WordPress coding standards and white space. = 0.3.0 = - Change action to react at 'init'. = 0.2.0 = - Add static function and singleton construction. = 0.1.0 = - Initial version == Upgrade Notice == = 1.1.0 = This version adds the following features: a 'continent' shortcode, a 'content' shortcode for localized geographic content, adds testing parameters to spoof visitor location and bumps version number for WP 4.2.2 compatibility. This update is recommended for all GeoIP users.