# Country/city is not correct when I do integration

**URL:** <https://forum.mautic.org/t/country-city-is-not-correct-when-i-do-integration/7097>\
**Category:** Development\
**Created:** [January 9, 2017, 3:10pm UTC](https://forum.mautic.org/t/country-city-is-not-correct-when-i-do-integration/7097 "2017-01-09T15:10:40Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![deddy](https://avatars.discourse-cdn.com/v4/letter/d/cc9497/32.png) [@deddy](https://forum.mautic.org/u/deddy)\
**Post date:** [January 9, 2017, 3:10pm UTC](https://forum.mautic.org/t/country-city-is-not-correct-when-i-do-integration/7097/1 "2017-01-09T15:10:40Z")

</div>

When I integrate a form into 3rd party apps such as WordPress (form submitted on the backend after someone purchase a product), Facebook lead ads. the country/city is not correct. I saw country/city is from the server of the 3rd party app. Is there any chance to fix it asap on the next update?

---

<div class="post-metadata">

**Author:** ![deddy](https://avatars.discourse-cdn.com/v4/letter/d/cc9497/32.png) [@deddy](https://forum.mautic.org/u/deddy)\
**Post date:** [January 9, 2017, 3:10pm UTC](https://forum.mautic.org/t/country-city-is-not-correct-when-i-do-integration/7097/2 "2017-01-09T15:10:40Z")

</div>

When I integrate a form into 3rd party apps such as WordPress (form submitted on the backend after someone purchase a product), Facebook lead ads. the country/city is not correct. I saw country/city is from the server of the 3rd party app. Is there any chance to fix it asap on the next update?

---

<div class="post-metadata">

**Author:** ![deddy](https://avatars.discourse-cdn.com/v4/letter/d/cc9497/32.png) [@deddy](https://forum.mautic.org/u/deddy)\
**Post date:** [January 11, 2017, 6:38pm UTC](https://forum.mautic.org/t/country-city-is-not-correct-when-i-do-integration/7097/3 "2017-01-11T18:38:23Z")

</div>

> [@18679:@MxyzptlkFishStix](#):
>
> How are you integrating the form?

I use custom WP plugin (optin form) and paste my optin form code on my product setting inside WP. When someone purchase my product then they automatically will be added into a segment. It just works… but the country/city is wrong. The country/city shows my WP site server, not actual customers’ city/country.

---

<div class="post-metadata">

**Author:** ![deddy](https://avatars.discourse-cdn.com/v4/letter/d/cc9497/32.png) [@deddy](https://forum.mautic.org/u/deddy)\
**Post date:** [January 18, 2017, 4:01pm UTC](https://forum.mautic.org/t/country-city-is-not-correct-when-i-do-integration/7097/4 "2017-01-18T16:01:53Z")

</div>

my custom plugin.  
also when I use fb lead ads, the subsrciber come from the server of CRM I use. even though the actual country is different.  
Any suggestion to fix it?

---

<div class="post-metadata">

**Author:** ![deddy](https://avatars.discourse-cdn.com/v4/letter/d/cc9497/32.png) [@deddy](https://forum.mautic.org/u/deddy)\
**Post date:** [July 4, 2017, 4:27pm UTC](https://forum.mautic.org/t/country-city-is-not-correct-when-i-do-integration/7097/5 "2017-07-04T16:27:56Z")

</div>

This issue also occurs when I use 3rd party apps such [upviral.com](http://upviral.com), [connectio.io](http://connectio.io) when I do integration with that apps. the IP of my contacts are from the IP (country) of the app, not the actual IP (country) of the contact.
