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.
Webmasters Stack Exchange is a question and answer site for pro webmasters. It only takes a minute to sign up.Sign up to join this community
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.
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