Skip to main content
Answered

Capture customer IP address


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?

Best answer by Liz

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. 

 

View original

28 replies

Liz
Community Team
Forum|alt.badge.img+5
  • Tech Community Advocate
  • 14451 replies
  • Answer
  • March 9, 2021

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. 

 


  • Author
  • Explorer
  • 2 replies
  • March 10, 2021

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.


Liz
Community Team
Forum|alt.badge.img+5
  • Tech Community Advocate
  • 14451 replies
  • March 10, 2021

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.


Liz
Community Team
Forum|alt.badge.img+5
  • Tech Community Advocate
  • 14451 replies
  • May 17, 2021

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!


Forum|alt.badge.img
  • Navigating the Land
  • 7 replies
  • June 20, 2021

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.  


Forum|alt.badge.img
  • Explorer
  • 6 replies
  • June 29, 2021

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


Forum|alt.badge.img+2
  • Sharing wisdom
  • 57 replies
  • December 20, 2021

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?


Liz
Community Team
Forum|alt.badge.img+5
  • Tech Community Advocate
  • 14451 replies
  • December 20, 2021

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. 


  • Explorer
  • 2 replies
  • February 18, 2022

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.


Liz
Community Team
Forum|alt.badge.img+5
  • Tech Community Advocate
  • 14451 replies
  • February 18, 2022

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


Forum|alt.badge.img+2
  • Sharing wisdom
  • 57 replies
  • February 21, 2022

@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?


Gabi Amaral
Ex–Typefomer
Forum|alt.badge.img+5
  • Ex–Typefomer
  • 1779 replies
  • February 21, 2022

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! 


Forum|alt.badge.img+2
  • Sharing wisdom
  • 57 replies
  • February 21, 2022

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?


john.desborough
Forum|alt.badge.img+6
  • Certified Partner & Champion
  • 5161 replies
  • February 21, 2022

@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.. 

 


Gabi Amaral
Ex–Typefomer
Forum|alt.badge.img+5
  • Ex–Typefomer
  • 1779 replies
  • February 22, 2022

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


Forum|alt.badge.img+2
  • Sharing wisdom
  • 57 replies
  • February 22, 2022

@Gabi Amaral yes, form is embedded on our website


Gabi Amaral
Ex–Typefomer
Forum|alt.badge.img+5
  • Ex–Typefomer
  • 1779 replies
  • February 22, 2022

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


mathio-tf
Typeform
Forum|alt.badge.img+5
  • Typeform
  • 888 replies
  • February 22, 2022

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


Forum|alt.badge.img+2
  • Sharing wisdom
  • 57 replies
  • February 22, 2022

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


Gabi Amaral
Ex–Typefomer
Forum|alt.badge.img+5
  • Ex–Typefomer
  • 1779 replies
  • February 24, 2022

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


Forum|alt.badge.img+2
  • Sharing wisdom
  • 57 replies
  • February 24, 2022

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


  • Navigating the Land
  • 3 replies
  • July 12, 2023

@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 ¯\_(ツ)_/¯ 


Forum|alt.badge.img+2
  • Sharing wisdom
  • 57 replies
  • July 13, 2023

@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

 

 

 

 


  • Navigating the Land
  • 3 replies
  • July 13, 2023

@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