How To Test Your Geotargeted campaigns

Lisa Fockens Updated by Lisa Fockens

You've set a popup to display in Alaska but you don't live there?

We've been there (in this scenario, not to Alaska).

In this tutorial, I'll explain how you can test the campaign as if you were in Alaska (or somewhere else).

Technique #1 (the easy way)

If you're targeting an entire country, the easiest way to test your targeting is to use a VPN.

We recommend SetupVPN. It's free, works for most countries, and can be added in two clicks.

SetupVPN for Chrome

SetupVPN for Firefox

You can leverage a service like BrowserStack to evaluate how your popup appears and operates across various devices in different regions. This enables you to access websites as though you were physically present in those locations.

Technique #2 (the tricky way)

If you're targeting a specific city or region, VPNs usually don't work.

You'll have to simulate your position using a different technique.

Step 1:

Click this link.

Step 2:

In the right menu, input the city you're targeting.

Step 3:

Click the result.

Step 4:

Copy the first result of the list.

Step 5:

Click this link and paste the IP into the input field. Then press the Look up button.

Check that the city matches the one you're targeting. If not, go back to step 4, copy another result, test it again until you find an IP that works.

Step 6:

Load your website with the Wisepops setup code installed.

Hit F12 to open the developer tools and click Console, as shown below:

Step 7:

Copy and paste the following snippet in the console.

Replace 1.2.3.4 in the second line by the IP you want to spoof.

Then hit Enter to execute the code.

wisepops('options', {
testIp: '1.2.3.4',
});

Now refresh the page. Wisepops should now use the provided IP to geolocate you during the browser session.

How to create a geo-targeted popup

Contact