Mobile app version of vmapp.org
Login or Join
Berryessa370

: Split testing only for a traffic from a particular country How to setup up split testing only for the user coming only from a particular country in Google Analytics experiment section? I want

@Berryessa370

Posted in: #GoogleAnalytics #SplitTesting

How to setup up split testing only for the user coming only from a particular country in Google Analytics experiment section?

I want to show a different page for all traffic coming from USA and different page to user from UK.

10.02% popularity Vote Up Vote Down


Login to follow query

More posts by @Berryessa370

2 Comments

Sorted by latest first Latest Oldest Best

 

@Si4351233

Before you website loads have a conditional check to get the IP of the visitor. I would use Maximinds API because you store the database locally on your server to check IP to Country, this is faster than accessing off site API's, redirect the visitors based on their country to the test page. So everyone in the US gets directed to page A which can have multiple variations of a test being Test A, and people from the UK go to page B which is Test B. You would setup two different tests assuming you're testing different elements on each test page which is targeting the people in those countries.

10% popularity Vote Up Vote Down


 

@Megan663

You would need to use geo IP address location to know which page to serve.

Here is a question from StackOverflow that can help you figure out how to do that: Get Country of IP Address with PHP

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme