Creating contact with location

Mautic: 4.4.4.

Does anyone know how to assign a contact’s location (country) if I have the IP address (but dont have the location info)? I am inserting contact through API, but there is no built-in IP address field.

Thanks.

You can add the country over API in the country field will do it.

Thanks @joeyk . That means I need to somehow get a country first before passing it to Mautic, right? There is no way to get Mautic to determine the country by IP, right?

Not that I know if, but that is maxmind for.
You can use the maxmind db to query it:
https://maxmind.github.io/GeoIP2-php/

Ah. Thanks for that. I will check that

This topic was automatically closed 36 hours after the last reply. New replies are no longer allowed.