Popover - show different ad based on visitor's country

Custom
  • 818 points
    Like some sort of WPMU DEV God"
    Mindblowingly helpful member
    nickd32

    Member  —  12th April 2011 (1 year ago)         

    I've got a case where I need to show a different popover to users based on their country.

    -- If user is in the US >> Show the US popover
    -- If user is in the UK >> Show the UK popover, etc...

    I've got a Geolocation plugin that returns a javascript variable on page load with the visitor's country code, like this:

    mmjsCountryCode = "US"

    I'd like to use a simple if/then statement based on this variable to show the right popover to each user for the countries I've set up.

    Is this possible using the current rules?