Community Groups are officially here!
We've released Groups, a new feature that enables us to connect community members of similar industries and interests in a shared, private space. You can check out all of the details here, including information about who can join, how to join, and what Groups are currently offered. Please leave your feedback through this Community Groups Feedback Survey.

Screening out real location of survey respondents even if they use VPN

fdeeg
fdeeg Cologne, GermanyCommunity Member Qubie ✭

Dear Qualtrics Community,

For my survey, I am trying to exclude all respondents who are not from the Germany, even if they might use a VPN. Therefore I am using ipdata to detect the location of the respondent. Everyone who is not from the Germany should be automatically excluded from the survey. However, if I test the link of the survey, sometimes I am excluded and sometimes not. If I save the ip address, I can see that it is always a 52. address that is not the actual address of my computer, but belongs apparently to some amazon company in Frankfurt or sometimes to some location in Ireland. I do not understand where Qualtrics or IPdata get this IP address from. Has anyone here encountered a similar problem and maybe solved it? I would really appreciate some help. Below you can also see how I use the webservice for that and how I set the embedded data and everything. For the api-key, I am using an actual key not the XXXXX that you see in the foto.

Thank you and cheers,
Franziska

Tagged:

Answers

  • TomG
    TomG Raleigh, NCCommunity Member, Qualtrics Brand Admin Wizard ✭✭✭✭✭

    You are getting the ip location of the Qualtrics server because your web service call is incorrect.

    The URL should be:
    https://api.ipdata.co/${loc://IPAddress}

    Remove the ip query parameter.

  • fdeeg
    fdeeg Cologne, GermanyCommunity Member Qubie ✭

    Dear Tom,
    Thank you for your help. Unfortunately It still doesn‘t work. If I put the URL as you suggest, and if I then use the test function if the URL, I receive the message from Qualtrics that the URL does not return any results for embedded data usage. Also, if I then test the entire survey again, I still get the wrong IP address, again starting with 52..
    Do you maybe have another idea, it would be really helpful.
    Cheers,
    Franziska

  • TomG
    TomG Raleigh, NCCommunity Member, Qualtrics Brand Admin Wizard ✭✭✭✭✭

    @fdeeg said:
    Dear Tom,
    Thank you for your help. Unfortunately It still doesn‘t work. If I put the URL as you suggest, and if I then use the test function if the URL, I receive the message from Qualtrics that the URL does not return any results for embedded data usage. Also, if I then test the entire survey again, I still get the wrong IP address, again starting with 52..
    Do you maybe have another idea, it would be really helpful.
    Cheers,
    Franziska

    Embedded variables don't get replaced when you click the Test button. It works for me when I do what I suggested above.

    However, if all you want to save is country name and code, you don't need a web service. Just pipe the GeoIP location data into embedded variables in your survey flow:
    country_name = ${loc://CountryName}
    country_code = ${loc://CountryCode}