Answered

Capture customer IP address


Userlevel 1

We plan to create a survey question in Typeform and embed it into our website. 
After the customer submitting the survey questions, will the Typeform capture the customer's IP address? 
Will Typeform deduct the customer's unique IP address and restrict the customer from submitting multiple surveys?

icon

Best answer by Liz 9 March 2021, 20:21

View original

28 replies

Userlevel 7
Badge +5

Hi @Charles thanks for stopping by! We don’t currently capture and share the IP addresses of your respondents, but would you mind sharing your use case? This will help us understand why adding this would be a helpful feature. :grinning:

As for restricting multiple responses, we have a workaround here that may help you. 

 

Userlevel 1

At the end of the survey, we plan to provide the voucher to our customers. So We want to restrict them to submits multiple responses.

Userlevel 7
Badge +5

Hi @Charles ah, got it - thank you!! That makes sense. 

Best regards

I would like to know if you plan to carry out this functionality in the future.

The business finds it important to have the IP addresses from where the client is sending the form to identify the origin of the regions and if from the same IP address they are filling out the same form several times.

Userlevel 7
Badge +5

Hi @Jorge Londoño Thanks for stopping by! I’m afraid this isn’t a feature currently in our roadmap, but I can share this feedback with our product team. If you have any other questions or suggestions, please let us know!

Userlevel 1
Badge

The IP Address helps Facebook track conversions.  This is essential for ad optimization, especially after the iOS update.

Typeform converts better than Wufoo, but FB can better track Wufoo forms since they include IP Address.  

Badge

+1 for this. We use typeform for ISP troubleshooting guides and this would be extremely helpful for us.

Userlevel 5
Badge +2

Hello,

We have multiple forms, and we don’t to ask clients extra questions non-related to the forms, but for our data purposes we want to collect identify which city clients are from, and thus we want to identify their IP address. What are possible workarounds to do that? Any suggestions?

Userlevel 7
Badge +5

Hi @ValdemarQ Welcome to the community! I added your post here where we have the answer. Let us know if you have any other questions. 

Hi all,

Just want to add our interest in this feature as well. The notion to hide IP addresses eludes me. We would only need it however, to verify a users location to country and town. This could still be done without revealing the actual IP address.

Userlevel 7
Badge +5

Thanks, @CommTeam ! As always, if we add this feature to the roadmap, we’ll post it here. :grinning:

Userlevel 5
Badge +2

@Liz I wonder given there is option to add hidden fields and there is option to have google tag manager integrated, is there a possibility that google tag manager passes those IP values to hidden field, which later is logged into the sheets?

Userlevel 7
Badge +5

Hey @ValdemarQ! How are you doing today?

As far as I know, I think there might be a way to do this but since it's more of a 3rd party tool configuration workaround case, I don't have a way to say it for sure.

Also, we don't have the expertise in Google Tag Manager to know for sure. So, I'd wait for @Liz to see if she has anything to add! :blush:

Sorry if I couldn't help you more! 

Userlevel 5
Badge +2

Is there any specialist around who could comment on this, help with a solution? To help get client IP to typeform hidden field when he is filling the typeform?

Userlevel 7
Badge +6

@ValdemarQ - if the form is embedded/accessible on/from your site, you should be able to capture the IP address someone hitting your web site.. and you should be able to track the activity Ie link click of that IP on your website to typeform - and using the time stamps you can approximate who, from where, is clicking links to typeforms and who is providing responses.. 

just a thought.. 

 

Userlevel 7
Badge +5

@ValdemarQ is the form you're trying to track the IP addresses from embedded on your website?

Userlevel 5
Badge +2

@Gabi Amaral yes, form is embedded on our website

Userlevel 7
Badge +5

@ValdemarQ! I'm tagging @picsoung and @mathio that might have some ideas on how to do that! 

Userlevel 7
Badge +5

Hello all 👋

For embedded typeforms you can pass this values as hidden field.

However you can not read the IP address client-side (in JavaScript). You can either return it from your own webserver or use a 3rd party service to obtain an IP address of your customer:

<div id="wrapper" style="width:100%;height:500px;"></div>
<link rel="stylesheet" href="//embed.typeform.com/next/css/widget.css">
<script src="//embed.typeform.com/next/embed.js"></script>
<script>
async function getIpAndLoadWidget() {
// load data about your customer from db-ip.com
const result = await fetch('https://api.db-ip.com/v2/free/self')
const data = await result.json()
const { ipAddress, continentCode, continentName, countryCode, countryName, stateProv, city } = data || {}

// create widget embed
window.tf.createWidget('<form-id>', {
container: document.querySelector('#wrapper'),

// pass the data to your typeform as hidden fields
hidden: {
ip: ipAddress,
continent: continentName,
country: countryName,
city: city,
}
})
}
getIpAndLoadWidget()
</script>

For details, limitations and terms of service about this 3rd party API see https://db-ip.com/api/free.php

Userlevel 5
Badge +2

Perfect, thank you! We shall try it out! Will report once tested!

Userlevel 7
Badge +5

Hey @ValdemarQ! How are you doing today? I was just wondering if you try mathio's suggestion? Curious to check if it worked! 

Userlevel 5
Badge +2

@Gabi Amaral in the process, once implement and tested will let you know :)

@ValdemarQ were you able to get this to work? I tried to add it to my Webflow site where we use a Typeform to send responses to Hubspot but the IP information is not being sent over to Typeform ¯\_(ツ)_/¯ 

Userlevel 5
Badge +2

@dan1ftp Hi, yes I managed to make it work, though used slightly different way. 

1. Created hidden fields

2. Upon opening form, my website adds the ip from 3rd party (as users has been identified on opening the webpage)

3. Add the ip, city, country and all the data to hidden fields

 

 

 

 

@ValdemarQ amazing news! Congratulations :) Would you be able to post a quick explainer video or code snippet of how you made this work? It would be a huge help for our environmental nonprofit :)

Reply