Override location when testing implementation

Overriding an end-user's location allows your organization to specify the location of an end-user accessing your web property without physically needing to be in that location. While your organization can use a virtual private network (VPN) to spoof a location, Sourcepoint has found that these tools can be unreliable during testing in some cases.  

In order to quickly and accurately test your implementation from different locations (e.g. ensuring the correct message appears for the correct region), Sourcepoint has developed a query string parameter that can be used to specify a location for an end-user directly from the address bar.

To override an end-user's location when accessing a web property, include the query string parameter _sp_geo_override to your URL and set the value for country code (CC) and region code (RR) so that it adheres to the following format:

_sp_geo_override=CC-RR

Review the table below for specifications regarding the country and region codes:

Value Definition Description
CC Country code The two letter code for the country for the overrided location. The country code adheres to ISO 3166-1 alpha-2.  
RR Region code

The two letter region within the specified country for the overrided location The region code adhere to ISO 3166-2.

The region code is a required value for the query string parameter even if you are not targeting a specific region. The region code does not need to be valid and can be set to XX or any other invalid region if targeting the entire country. 

//Override user location to Quebec, Canada
https://testdemo.com?_sp_geo_override=CA-QC

//Override user location to California, United States
https://testdemo.com?_sp_geo_override=US-CA

//Override user location to Germany
https://testdemo.com?_sp_geo_override=DE-XX

When the query string parameter is detected Sourcepoint servers will ignore your location and utilize the value of the parameter when delivering the message. 

Was this article helpful?
0 out of 0 found this helpful

Comments

0 comments

Article is closed for comments.