How to track IP Address of people who fill out a form

Just to add to the privacy & legality discussion, I have a note in my cloneable however I do feel a tiny bit like I’m handing out a loaded gun to people who have no awareness of these issues.

The best practices I run with are as follows;

  • Use the Geoip service to collect the data you need, such as region, country, continent, city, and use that to drive your app.
  • Save that info only if needed, it’s not PII, so it’s safe to record
  • Never save the IP, or collect it in forms, unless that behavior is clearly stated, and it is absolutely necessary, and you’ve covered your bases legally.
  • There are almost no situations where this is necessary, outside of some digital signing processes, and a few government sites who track IPs on complaint submissions. Where possible, when you need IP tracking, CYA by farming that out to a service that can protect that data properly

Basically, treat IP capture the same way you’d treat credit card capture.

Hi! I tried to replicate your instructions in my site.

However, the IP is only being transmitted if I set the “Visibility and user access” settings of the field to visible. If I set the setting to hidden, it does not transmit the IP.
Screen Shot 2024-01-31 at 11.22.05 PM

Am I doing it right when you said to “Set this last field to hidden so that users don’t see it”?

I also have other scripts running on my page, at the tag. The purpose of which is to get the URL of the form and the page name. Looking forward to your response. Thanks!

‘Visibility & user access: Hidden’ means that it won’t publish your code to the HTML structure at all.

Instead, you gotta use Layout/Display:none, that only hides the field visually, while its content remains present in the HTML DOM.
image

I have a question, where would you see the ip address or the output gathered?