ClickFunnels location extraction [advanced guide]
ClickFunnels only provides "server IP" addresses to 3rd party integrations, so Fomo can't detect the location of your leads without annoying "city, state, country" fields in your form.
Since that's really annoying, we built a workaround.
Follow the guide below to take advantage of ##{{ city }}, ##{{ province }}, and ##{{ country }} merge variables in your ClickFunnels integration, without adding any more inputs to your ClickFunnels forms.
Step 1 - Open your Funnel Form / Popup
Open the Page Editor for any page of your funnel that has a contact or purchase form.
In the example below, we're opening up a Popup Form.
![](http://d33v4339jhl8k0.cloudfront.net/docs/assets/6630e7894c3ddc1d4e7a2400/images/66509ecb5940934e140f3dbc/alzl0dv3pllwyddd9h5zmf8aa2x7ndx2671itz6rhyk1rmtrk0_3F1502691722.gif)
Notice the ability to "add new element" below our bottom-most form field. We'll use this in the next step.
Step 2 - Add new Form Element
Add a new Element to your form.
![](http://d33v4339jhl8k0.cloudfront.net/docs/assets/6630e7894c3ddc1d4e7a2400/images/66509ecb1f3fa9421e2871b9/2zuvle54uk2pey3jgpe6h2vmy5cd8p3lfrxvdgw3r3pa8gftcw_3F1502691865.png)
On the right side, select the "Input" type underneath the "Form" category.
![](http://d33v4339jhl8k0.cloudfront.net/docs/assets/6630e7894c3ddc1d4e7a2400/images/66509eccdd0f8c60bb3fc397/99gql5ukmtpsew83i9865l3xsnfbtcza7plsukjit0rosgvt09_3F1502691929.png)
Step 3 - Configure and Hide the New Element
Immediately after selecting the 'Input' type in Step 2, you'll see a new field appended to your form.
Click that form field to modify it:
![](http://d33v4339jhl8k0.cloudfront.net/docs/assets/6630e7894c3ddc1d4e7a2400/images/66509eccd593d719515c9a55/ub0g98ul8gt19tdpsmq9jnoozpdn4xxl5qkkyuuvkb0dz0tm5w_3F1502692119.png)
On the right side, several options will appear.
Simply change the Input Type to Zip and click the 'eyeball' icon along the bottom to "Hide" this field.
![](http://d33v4339jhl8k0.cloudfront.net/docs/assets/6630e7894c3ddc1d4e7a2400/images/66509ecc1f3fa9421e2871ba/5f3a8lhjan0r25af2ntrhpz3vdispdnpmegrnecooem46nfvvo_3F1502692203.gif)
You should now see your form again, but without this field we just created.
Step 4 - Add Location Detection
Now that our form has a hidden field, we just need to add a snippet of code that will "fill in" this field with your visitors' IP Address, to then be sent to Fomo and turned into a set of location parameters.
Along the top navigation, hover Settings > Tracking Code > Footer.
![](http://d33v4339jhl8k0.cloudfront.net/docs/assets/6630e7894c3ddc1d4e7a2400/images/66509ecdd593d719515c9a56/6d0jfjd9ma71lwqpk9c62eri07fasqmogpkcpdyxfzoq14s234_3F1502692312.gif)
After you're in the "footer" tab of this popup window, paste the following code:
This snippet does 2 things:
-
Fetches your visitor's IP address after the page loads (won't slow down your site)
-
Inputs that IP address into the hidden "zip" field we created on your form
Step 5 - Extract Location Data from the IP Address
Find your ClickFunnels template > Advanced > Extract location data from event IP address. Make sure this is enabled and click the orange "Save" button:
![](http://d33v4339jhl8k0.cloudfront.net/docs/assets/6630e7894c3ddc1d4e7a2400/images/66509ecd5940934e140f3dbd/clickfunnels_advanced.png)
Step 6 - You're done!
Remember to click 'Save' in the top right, to reflect all these changes on your funnel page.
![](http://d33v4339jhl8k0.cloudfront.net/docs/assets/6630e7894c3ddc1d4e7a2400/images/66509ece1f3fa9421e2871bb/mkm1t37ersg6mvzlym7zz6702lr11nblvvdq9uljjma0nkjn7x_3F1502692747.png)
Repeat Steps 1-5 above for each funnel page that has a form for New Contacts or Purchases.
Going forward, all new contacts and purchases will have accurate City, Province, and Country parameters which you can embed inside your ClickFunnels templates.
Need more help? Let us know.