Skip to content

This plugin demonstrates how to pass WP Engine GeoTarget data to JavaScript

License

Notifications You must be signed in to change notification settings

nateinaction/geotarget-js-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GeoTarget JS Example

This plugin is an example of how to pass WP Engine GeoTarget data to javascript. This example displays a message to any visitors from EU countries alerting them to upcoming GDRP compliance changes.

How to test:

With the plugin installed, just add a query string in the URL for an EU member country: ?geoip&country=IE

You will see something like this:

Alert showing GDPR compliance notice to an Irish visitor

About

This plugin demonstrates how to pass WP Engine GeoTarget data to JavaScript

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published