# Mautic User ID logic

**URL:** <https://forum.mautic.org/t/mautic-user-id-logic/17008>\
**Category:** Product Support\
**Created:** [November 12, 2020, 9:02pm UTC](https://forum.mautic.org/t/mautic-user-id-logic/17008 "2020-11-12T21:02:01Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

**Author:** ![michaelmm7](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/michaelmm7/32/422_2.png) [@michaelmm7](https://forum.mautic.org/u/michaelmm7)\
**Post date:** [November 14, 2020, 6:52pm UTC](https://forum.mautic.org/t/mautic-user-id-logic/17008/7 "2020-11-14T18:52:45Z")

</div>

Hi, it looks like this is a bug in Mautic:

> [@Ghost contact IDs](https://forum.mautic.org/t/ghost-contact-ids/11610):
>
> Your software Mautic version v2.15.2 PHP version 7.1.30 Browser Chrome Your problem My problem is: Hundreds of Ghost contact IDs are being generated nearly every day in my Mautic installation due to an unknown reason, even though in the contact list there’s only 84 registered contacts. The “ghost IDs” are just that, no new contact is actually created every time this happens. I originally thought it had something to do with a bad cron job but as you can see in the image…

> <https://github.com/mautic/mautic/pull/7614>
>
> \*\*Please be sure you are submitting this against the \_staging\_ branch.\*\*
> 
> \[//\]…: # ( Please answer the following questions: )
> 
> | Q | A
> | --- | ---
> | Bug fix? | 
> | New feature? | 
> | Automated tests included? |
> | Related user documentation PR URL | 
> | Related developer documentation PR URL | 
> | Issues addressed (#s or URLs) | fixes https://github.com/mautic/mautic/issues/7565
> | BC breaks? | 
> | Deprecations? | 
> 
> \[//\]: # ( Note that all new features should have a related user and/or developer documentation PR in their respective repositories. )
> 
> \[//\]: # ( Required: )
> \#### Description:
> Based on discussion https://github.com/mautic/mautic/issues/7565 and comment https://github.com/mautic/mautic/issues/7565#issuecomment-497675707 
> we've added option Do Not Track 404 error page tracking for anonymous visitors. This causes a lot of anonymous contacts from bots. New option added to Configuration \> Tracking Settings tab.  
> UNIT test included in this PR
> 
> \[//\]: # ( As applicable: )
> \#### Steps to reproduce the bug:
> 1. Try in incognito not existed url: https://yourmautic.com/whatever
> 2. Go to Mautic \> Contacts and switch to anonymous list view
> 3. See new contact was create with https://yourmautic.com/whatever page hit
> 
> \#### Steps to test this PR:
> 1. Load up \[this PR\](https://mautibox.com)
> 2. Repeat all steps but disable in Configuration \> Tracking Settings tab \> Do Not Track 404 error page
> 3. See If 404 not found page wasn't tracked
> 4. Create identified contact (via form, via tracking code)
> 5. Go to 404 not found page and see If page was tracked
> 
> !\[image\](https://user-images.githubusercontent.com/462477/132746748-04d4edae-1be9-40c9-b3b4-aded0d0ee023.png)
> 
> 
> \<a href="https://gitpod.io/#https://github.com/mautic/mautic/pull/7614"\>\<img src="https://gitpod.io/button/open-in-gitpod.svg"/\>\</a\>

Will this be solved in the new version 3.2?

Is there no way currently to completely disable that anonymous users are added? (And also wrongly added by bots/Mautic itself)

---

_[View the full topic](https://forum.mautic.org/t/mautic-user-id-logic/17008)._
