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

Capture GeoIP location in the survey

  • January 11, 2024
  • 4 replies
  • 1301 views

Forum|alt.badge.img+28
  • Level 4 ●●●●
  • 63 replies

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.

4 replies

vgayraud
QPN Level 6 ●●●●●●
Forum|alt.badge.img+58
  • QPN Level 6 ●●●●●●
  • 544 replies
  • January 11, 2024

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


Forum|alt.badge.img+28
  • Author
  • Level 4 ●●●●
  • 63 replies
  • January 11, 2024

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

 


vgayraud
QPN Level 6 ●●●●●●
Forum|alt.badge.img+58
  • QPN Level 6 ●●●●●●
  • 544 replies
  • January 11, 2024

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

 


vgayraud
QPN Level 6 ●●●●●●
Forum|alt.badge.img+58
  • QPN Level 6 ●●●●●●
  • 544 replies
  • January 11, 2024

And using a VPN with exit point in India :

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