# Anonymous Leads by Cookie instead of IP

**URL:** <https://forum.mautic.org/t/anonymous-leads-by-cookie-instead-of-ip/2661>\
**Category:** Product Support\
**Created:** [October 30, 2015, 12:07pm UTC](https://forum.mautic.org/t/anonymous-leads-by-cookie-instead-of-ip/2661 "2015-10-30T12:07:27Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![hiew](https://avatars.discourse-cdn.com/v4/letter/h/5fc32e/32.png) [@hiew](https://forum.mautic.org/u/hiew)\
**Post date:** [October 30, 2015, 12:07pm UTC](https://forum.mautic.org/t/anonymous-leads-by-cookie-instead-of-ip/2661/1 "2015-10-30T12:07:27Z")

</div>

I am aware that most people want anonymous leads to be split by IP to avoid clutter.  
  
But for my specific scenario, due to large number of people sharing IP addresses, I need it to be split on a browser cookie level.  
  
  
  
Is it possible to do currently?  
  
It would be good if there is a setting/flag to change the classification of Anonymous Leads by either IP or Cookie.  
  
I am a PHP programmer and I don’t mind developing this feature.  
  
Would appreciate if someone can point me in the right direction to do this and the difficulties that I may encounter.  
  
  
  
If I succeed, I will gladly submit the code back to be incorporated into the main branch

---

<div class="post-metadata">

**Author:** ![hiew](https://avatars.discourse-cdn.com/v4/letter/h/5fc32e/32.png) [@hiew](https://forum.mautic.org/u/hiew)\
**Post date:** [October 30, 2015, 12:07pm UTC](https://forum.mautic.org/t/anonymous-leads-by-cookie-instead-of-ip/2661/2 "2015-10-30T12:07:27Z")

</div>

I am aware that most people want anonymous leads to be split by IP to avoid clutter.  
But for my specific scenario, due to large number of people sharing IP addresses, I need it to be split on a browser cookie level.

Is it possible to do currently?  
It would be good if there is a setting/flag to change the classification of Anonymous Leads by either IP or Cookie.  
I am a PHP programmer and I don’t mind developing this feature.  
Would appreciate if someone can point me in the right direction to do this and the difficulties that I may encounter.

If I succeed, I will gladly submit the code back to be incorporated into the main branch

---

<div class="post-metadata">

**Author:** ![escopecz](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/escopecz/32/370_2.png) [@escopecz](https://forum.mautic.org/u/escopecz)\
**Post date:** [October 30, 2015, 1:58pm UTC](https://forum.mautic.org/t/anonymous-leads-by-cookie-instead-of-ip/2661/3 "2015-10-30T13:58:16Z")

</div>

There has been a discussion about this topic few times already. It’d be great if you could make this configurable. Take a look at the hitPage method: [https://github.com/mautic/mautic/blob/staging/app/bundles/PageBundle/Model/PageModel.php#L337](https://github.com/mautic/mautic/blob/staging/app/bundles/PageBundle/Model/PageModel.php#L337)

---

<div class="post-metadata">

**Author:** ![hiew](https://avatars.discourse-cdn.com/v4/letter/h/5fc32e/32.png) [@hiew](https://forum.mautic.org/u/hiew)\
**Post date:** [November 2, 2015, 8:27am UTC](https://forum.mautic.org/t/anonymous-leads-by-cookie-instead-of-ip/2661/4 "2015-11-02T08:27:48Z")

</div>

Thanks for the reply. I will try to get it to work.

---

<div class="post-metadata">

**Author:** ![donjoe](https://avatars.discourse-cdn.com/v4/letter/d/eb9ed0/32.png) [@donjoe](https://forum.mautic.org/u/donjoe)\
**Post date:** [February 26, 2016, 1:30pm UTC](https://forum.mautic.org/t/anonymous-leads-by-cookie-instead-of-ip/2661/5 "2016-02-26T13:30:29Z")

</div>

Dear all,

@hiew : I am also interested in such a feature. Were you able to implement it ?  
@escopecz : Is there any plan to have a feature in a future release ?

Thank yall.

Regards

---

<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/anonymous-leads-by-cookie-instead-of-ip/2661/6 "2020-02-02T22:57:25Z")

</div>


