How to retrieve country and geo data from activecampaign.
I want to pass the geo-location information, the same way i am doing with name, email etc’
What are the veribles in the form?
If i know that the email data come from this:
<input type=“text” name=“email” id=“email”…
How can i know how to “call” the: Country, State, City?
Are they one of those or else?
<input type=“hidden” name=“u” value=“5”
<input type=“hidden” name=“f” value=“5”
<input type=“hidden” name=“s”
<input type=“hidden” name=“c” value=“0”
<input type=“hidden” name=“m” value=“0”
<input type=“hidden” name=“act” value=“sub”
<input type=“hidden” name=“v” value=“2”
If you are using the default form ActiveCampaign will automatically send geographic information when possible. It is based on the ip address of the person submitting the form and processed server-side.
If you wanted to populate custom form fields yourself using javascript that is possible, but you would want to do that by adding custom hidden fields to the form first.
Hey @jskole
Thanks for replying but,
I know that i get them to my email, but as you understand i want to post them with Zapier,
This geo location information have ActiveCampaign fields or else?
I do not know why i should get them with JS code if ActiveCampaign have them build-in.
I understand, I have needed it in the past as well, it just isn’t something that we expose in the webhooks or via an API call. We do expose the IP address, so you can do a geo lookup of the IP address.
Hey! Customer Experience team here to update this post. You can retrieve this information using the following API call from our documentation: Retrieve a contacts geo IP address