Capture GeoIP location in the survey | XM Community
Skip to main content

In my survey, I need to capture the GeoIP location of the respondents, like City, State/Region, Country Name and Postal Code. I have created embedded fields for the same. Please find below SS for your reference.

when I took run via preview link It’s capturing the data for all four fields however when I used email distribution to take the run, it do capture the data only for 'State/Region’ and 'Country Name’ and data is wrong. Although I am in India and its showing 'United States’.

 

Please advise how to tackle this.

Is it possible you were using some kind of VPN on the device where you were taking the survey with the invitation link?


@vgayraud thanks for your reply. Maybe in my system we have VPN, is there any way to collect the location data in the survey.

 


Your survey flow settings are correct, but you won’t be able to capture the real GeoIP location for people using a VPN: the best you’re gonna get is the VPN exit point location, which doesn’t mean much.

Here are the possible GeoIP location fields and what is captured from my location :

${loc://PostalCode}: 74200
${loc://City}: Thonon-les-Bains
${loc://Region}: 74
${loc://CountryName}: France
${loc://CountryCode}: FR

 


And using a VPN with exit point in India :

${loc://PostalCode}: 400072
${loc://City}: Mumbai
${loc://Region}: MH
${loc://CountryName}: India
${loc://CountryCode}: IN

 


Leave a Reply