# Automatically associate existing customers with IP address.

**URL:** <https://forum.mautic.org/t/automatically-associate-existing-customers-with-ip-address/2713>\
**Category:** Product Support\
**Created:** [November 6, 2015, 12:12am UTC](https://forum.mautic.org/t/automatically-associate-existing-customers-with-ip-address/2713 "2015-11-06T00:12:50Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![malcolm](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/malcolm/32/39_2.png) [@malcolm](https://forum.mautic.org/u/malcolm)\
**Post date:** [November 6, 2015, 12:12am UTC](https://forum.mautic.org/t/automatically-associate-existing-customers-with-ip-address/2713/1 "2015-11-06T00:12:50Z")

</div>

Hi,  
  
  
  
I’m a mautic rookie, have it setup (self hosted) and am starting to lay out some campaigns, lists, etc. For new leads I think I’m getting on top of it, after spending a bunch of time reading posts in here. Thanks all.  
  
  
  
However, there’s one thing I haven’t been able to figure out yet. For my existing customers, I’d like to find a way to get them into Mautic as known leads with minimal effort on their part. I know I can import leads but that doesn’t tie them to an IP address and I’d rather not wait for them all to fill out a form before making the connection.  
  
  
  
What I was thinking was when I send out newsletters or EDM’s to my customers (which I do already outside of Mautic) is it possible to embed a Lead ID (or some other identifying data) in the URL or even the tracking gif, so that when they click on a link andor download the tracking gif, mautic would automatically associate their IP with their Lead record?  
  
  
  
I hope that makes sense. If this has already been discussed here, my apologies, I did spend a bunch of time looking and searching before posting this.  
  
  
  
Cheers  
  
Malcolm

---

<div class="post-metadata">

**Author:** ![malcolm](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/malcolm/32/39_2.png) [@malcolm](https://forum.mautic.org/u/malcolm)\
**Post date:** [November 6, 2015, 12:12am UTC](https://forum.mautic.org/t/automatically-associate-existing-customers-with-ip-address/2713/2 "2015-11-06T00:12:50Z")

</div>

Hi,

I’m a mautic rookie, have it setup (self hosted) and am starting to lay out some campaigns, lists, etc. For new leads I think I’m getting on top of it, after spending a bunch of time reading posts in here. Thanks all.

However, there’s one thing I haven’t been able to figure out yet. For my existing customers, I’d like to find a way to get them into Mautic as known leads with minimal effort on their part. I know I can import leads but that doesn’t tie them to an IP address and I’d rather not wait for them all to fill out a form before making the connection.

What I was thinking was when I send out newsletters or EDM’s to my customers (which I do already outside of Mautic) is it possible to embed a Lead ID (or some other identifying data) in the URL or even the tracking gif, so that when they click on a link andor download the tracking gif, mautic would automatically associate their IP with their Lead record?

I hope that makes sense. If this has already been discussed here, my apologies, I did spend a bunch of time looking and searching before posting this.

Cheers  
Malcolm

---

<div class="post-metadata">

**Author:** ![malcolm](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/malcolm/32/39_2.png) [@malcolm](https://forum.mautic.org/u/malcolm)\
**Post date:** [November 6, 2015, 11:34pm UTC](https://forum.mautic.org/t/automatically-associate-existing-customers-with-ip-address/2713/3 "2015-11-06T23:34:29Z")

</div>

I think maybe this [https://www.mautic.org/community/index.php/123-logged-in-users/0](https://www.mautic.org/community/index.php/123-logged-in-users/0) will let me put their name/email as params on the tracking pixel in the newsletter I send out and have it update the fields in the lead.

Does anyone know if I can also update lead fields automatically from params on a URL in the email, so the same happens on click-thru?

Cheers  
Malcolm

---

<div class="post-metadata">

**Author:** ![healthstatus](https://avatars.discourse-cdn.com/v4/letter/h/9f8e36/32.png) [@healthstatus](https://forum.mautic.org/u/healthstatus)\
**Post date:** [November 7, 2015, 1:00pm UTC](https://forum.mautic.org/t/automatically-associate-existing-customers-with-ip-address/2713/4 "2015-11-07T13:00:47Z")

</div>

I created a redirect page for this purpose, pass parameters in the email, land them on a redirect form with the tracking pixel, then pass them on.

---

<div class="post-metadata">

**Author:** ![malcolm](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/malcolm/32/39_2.png) [@malcolm](https://forum.mautic.org/u/malcolm)\
**Post date:** [November 9, 2015, 2:19am UTC](https://forum.mautic.org/t/automatically-associate-existing-customers-with-ip-address/2713/5 "2015-11-09T02:19:47Z")

</div>

Hi @healthstatus

That’s interesting. Can you expand on that a little please? Are you taking the link params and substituting them into the tracking pixel on the redirect page, or have I misunderstood?

Cheers  
Malcolm

---

<div class="post-metadata">

**Author:** ![healthstatus](https://avatars.discourse-cdn.com/v4/letter/h/9f8e36/32.png) [@healthstatus](https://forum.mautic.org/u/healthstatus)\
**Post date:** [November 9, 2015, 2:19pm UTC](https://forum.mautic.org/t/automatically-associate-existing-customers-with-ip-address/2713/6 "2015-11-09T14:19:59Z")

</div>

Sure, we just have a simple php redirect script on our main website which grabs the url parameters off the url set in the email, and at the same time gets the IP address. So the parameters in the email url would be the encoded destination url (which gets put into a meta refresh tag), the email address. the only thing on the page is the mautic tracking pixel with the url of where you are redirecting to (if offsite), title of the page, and the email address set in the tracking pixel parameters. If you are not directing the users off your site, then the destination url and page title will be picked up once the redirect from the meta refresh occurs.

---

<div class="post-metadata">

**Author:** ![malcolm](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/malcolm/32/39_2.png) [@malcolm](https://forum.mautic.org/u/malcolm)\
**Post date:** [November 10, 2015, 12:01am UTC](https://forum.mautic.org/t/automatically-associate-existing-customers-with-ip-address/2713/7 "2015-11-10T00:01:07Z")

</div>

Thanks @healthstatus, that’s perfect. Appreciate the help.

Cheers  
Malcolm

---

<div class="post-metadata">

**Author:** ![silavapi](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/silavapi/32/7424_2.png) [@silavapi](https://forum.mautic.org/u/silavapi)\
**Post date:** [February 2, 2020, 10:57pm UTC](https://forum.mautic.org/t/automatically-associate-existing-customers-with-ip-address/2713/8 "2020-02-02T22:57:14Z")

</div>


