Skip to content

Instantly share code, notes, and snippets.

@atwellpub
Last active April 5, 2017 02:57
Show Gist options
  • Save atwellpub/70b6a72da00758eed21da005b1893237 to your computer and use it in GitHub Desktop.
Save atwellpub/70b6a72da00758eed21da005b1893237 to your computer and use it in GitHub Desktop.
Getting started Geo-targeting Popups with WordPress

The Plugins

GeoTargeting Lite – WordPress Geolocation

Description

https://wordpress.org/plugins/geotargeting/

Based on Maxmind GeoIP2 data Geo Targeting plugin for WordPress will let you create dynamic content based on your users’ country.

With a simple shortcode you will be able to specify which countries are capable of seeing the content.

WordPress Popups Plugin

https://wordpress.org/plugins/popups/

Description

The new Popups plugin can display multiple popups. Is the perfect solution to increase your social followers, add call to actions, increase your mailing lists by adding a form like mailchimp or to display any important message in a simple popup.

It’s compatible with the major form plugins like (read FAQ):

  • Gravity Forms

  • Ninja Forms

  • Contact form 7

  • USP Forms

  • Infusion Soft

  • Jetpack

  • Mailpoet

  • Mailchimp for WP

  • Postmatic

  • Any generic form

  • Facebook Login popups using the Facebook login pro plugin

There are multiple display filters that can be combined:

  • Show popup on specific pages, templates, posts, etc

  • Filter user from search engines

  • Filter users that never commented

  • Filter users that arrived via another page on your site

  • Filter users via roles

  • Show popup depending on referrer

  • Show popup to logged / non logged users

  • Show or not to mobile, desktop and tablet users

  • Show or not to bots / crawlers like Google

  • Show or not depending on query strings EG: utm_source=email

  • Show depending on post type, post template, post name, post format, post status and post taxonomy

  • Show depending on page template, if page is parent, page name, page type

Setting up the plugins

Installing plugins

Here you can see which two plugins by what authors are installed:

image alt text

WordPress Popups Plugin

Enable AJAX mode

Because your WordPress instance is being cached this Popups plugin will prompt you to turn on Ajax mode.

image alt text

Create your first popup

Here’s a video of me creating a delayed popup that targets users in the United States.

https://www.screencast.com/t/BkxY6Bq1hHJi

Another example from the plugin developer of how a popup could look:

image alt text

Pro Versions

Links

Pricing

####Geotargeting Pro - Annual Costs

image alt text

####Popups Premium - Annual Costs

image alt text

####Summary

I personally think it’s worth it to get the premium version of each plugin. It would cost about 84.00 per year per site if you purchased a single site license for both plugins.

You could use custom CSS and custom JS to hack elements to your liking if you were not happy with the presets or even extended features if you choose to go that route. I’m sure codeable developers would be happy to help.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment