Set IP of user when submitting form of site

I’m using this method via php to submit post data to a mautic form



https://medium.com/@jan_linhart/the-simplest-way-how-to-submit-a-form-data-to-mautic-1454d3afd005#.rywamdcea



My question is, when you do that all contacts have the same IP, which most likely means the mtc tracking won’t work properly.



Is it possible to pass IP of submitter via post data ef



data = “current ip of user submitting form”

I’m using this method via php to submit post data to a mautic form

https://medium.com/@jan_linhart/the-simplest-way-how-to-submit-a-form-data-to-mautic-1454d3afd005#.rywamdcea

My question is, when you do that all contacts have the same IP, which most likely means the mtc tracking won’t work properly.

Is it possible to pass IP of submitter via post data ef

data[‘ip’] = “current ip of user submitting form”

All the lead create https://medium.com/@jan_linhart/the-simplest-way-how-to-submit-a-form-data-to-mautic-1454d3afd005#.rywamdcea have the same ip???

There is code in that example which passes the user’s IP address to Mautic. It has been working properly for me.

Couple of things to check, which you may well have already done - firstly that the code is implemented correctly on your server, and secondly that you are getting contacts created from different IP addresses (contacts being routed from the same location or coming through a VPN to your server will have the same IP).

Other than that I’m not sure what you can do.

I wasn’t correctly setting the $ip in the request, but once I added that it worked. Thanks so much for the help!

I was custom hacking a new newsletter integration for amembers.