Geo Core is now on WordPress.org: show each country the content meant for it

Geo Core, our country targeting plugin, is now listed on WordPress.org. Here's what it does, how it decides which country a visitor is in, and why content meant for other countries never reaches the visitor at all.

reactadm

A shop in Manchester runs a banner that says “Free UK delivery”. It’s true, and it’s useful, for visitors in the UK. A visitor in Toronto sees the same banner, adds something to the basket, and finds out at checkout that the offer was never meant for them.

Nothing on the page was broken. It just said the same thing to everyone, and only some of them were the people it was written for.

That’s the problem Geo Core is built for, and as of this week you can install it straight from WordPress.org.

What Geo Core does

Geo Core works out which country a visitor is in, then lets you use that country in your content and rules. The idea is simple: keep one page, and change only the parts that should be different in different countries.

In practice that means you can:

  • Show something to selected countries. A delivery offer for the UK, a call to action in French for France, a local phone number for South Africa.
  • Hide what doesn’t apply. A service you only offer in one city doesn’t need to appear for visitors who can’t book it.
  • Group countries. Build country groups once and reuse them in visibility rules, instead of retyping the same list of codes.

You set this up wherever you already build pages. In the block editor there’s a Geo Content block. In Elementor, sections and widgets get a Geo Visibility setting, and pages and popups can be shown or hidden by country. There are shortcodes too, including a conditional one:

Free shipping for North America

Plus shortcodes that print the visitor’s country, country code and currency, and PHP helpers for themes and other plugins. Rules use two-letter ISO country codes (GB, FR, ZA) because they’re stable for logic. Use full country names for anything the visitor reads.

How it knows the country

Geo Core looks up the visitor’s country on your own server, using MaxMind’s GeoLite2 Country database. You download that database with your own MaxMind account (or upload the file yourself), and it’s stored on your site. Lookups use that local file.

Two things follow from that. First, the visitor’s IP address isn’t sent to MaxMind to find their country; only the database download talks to MaxMind, and only when an administrator starts it. Second, Geo Core doesn’t call ReactWoo while a visitor’s page is being built. No ReactWoo account is needed for any of this.

If the country can’t be worked out, your default content shows. A page should always make sense, even when no rule matches.

A person at a wooden table works on a laptop beside a stack of cardboard parcels.
Orders going out, and the next question is where they’re going. Photo: Kampus Production / Pexels

Content for other countries is never sent

This is the part worth slowing down for.

A lot of “personalisation” works by sending everything to the browser and then hiding what doesn’t fit. The UK offer, the US offer and the South African offer all arrive; a script decides which two to tuck away. The hidden versions are still in the page. They can flash on screen before the script runs, they’re there for anyone who views the source, and they make the page heavier than it needs to be.

Geo Core evaluates country rules on the server, before the page is sent. If a section is meant for the UK, a visitor in Canada never receives it. Their page simply doesn’t contain it. What the visitor gets is the version of the page that was meant for them, and nothing else.

That makes optimisation by country a cleaner job. You can tighten a message for one market without worrying that another market will catch a glimpse of it.

A good first rule

If you’re not sure where to start, pick the one line on your site that’s only true in some places. Delivery promises are a common one. Opening hours, phone numbers and “available in” notes are others.

  1. Install Geo Core from WordPress.org and activate it.
  2. Go to Integrations → MaxMind (GeoLite2), add your MaxMind account details, and download the country database. Test detection on the same screen.
  3. Wrap the line in a country rule: show it to the countries where it’s true, and leave a sensible default for everyone else.
  4. Check the setup and visitor context in the Geo Core dashboard, then view the page before you rely on it.

Start with one rule and let it earn its place. You can add more once you’ve seen the first one work.

What’s next

Geo Core is the foundation. Geo Core Pro adds more ways to target, such as device, language, schedule, campaign and page conditions. Geo Commerce uses Geo Core as its country source for WooCommerce stores.

If you’ve been waiting for split testing, that belongs to Geo Optimise, which is coming soon. You can join the waitlist on reactwoo.com.

Get Geo Core

Geo Core is on WordPress.org now, and works with any theme and editor. It needs WordPress 6.2 or newer and PHP 8.1 or newer.

Get Geo Core on WordPress.org

KEEP READING

Related resources.

Don’t update everything the night before Black Friday
Black Friday week is a bad time to find out what a big update does to checkout. Freeze features, keep
read resource

Hide what doesn’t apply: tidy the catalogue by country
A shopper shouldn't have to work out which products you can actually sell them. Hide market-blocked SKUs, put the local
read resource

Build the campaign section once, reuse it everywhere
Seasonal banners should not be twelve nearly identical copies. Elementor V4 Components (Pro), with classes and variables underneath, let you
read resource

REACTWOO NOTES

Practical ideas, occasionally.

A short email when we have something useful to share — conversion thinking, useful experiments and new free tools.

No daily noise. Unsubscribe whnever you like.