# 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:** 7\
**Page:** 1

<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 12, 2020, 9:02pm UTC](https://forum.mautic.org/t/mautic-user-id-logic/17008/1 "2020-11-12T21:02:01Z")

</div>

**Your software**  
My Mautic version is: 3.1.2  
My PHP version is: 7.3.17-1  
My Database type and version is: newest

**Your problem**  
My problem is:

Hello,

is it normal that Mautic adds such user IDs in non-sequential order (1, 2, 3,…), but has jumps in between like here: 39, 87, 113, 114, 115  
I did not delete any user. Those are the user ID Mautic has automatically given. The users were created via Wordpress Plugin WP Fusion.

 ![grafik](https://us1.discourse-cdn.com/flex020/uploads/mautic/original/2X/a/a50ba314a4fe392a991152dc0735cb4acc4bd7a6.png)

---

<div class="post-metadata">

**Author:** ![joeyk](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/joeyk/32/11164_2.png) [@joeyk](https://forum.mautic.org/u/joeyk)\
**Post date:** [November 13, 2020, 4:51am UTC](https://forum.mautic.org/t/mautic-user-id-logic/17008/2 "2020-11-13T04:51:32Z")

</div>

Hi! Did you install tracking on your website?  
Mautic also tracks your visitors and creates contacts from this visitors.  
Click on the little person icon on the right upper corner on the contacts page. Any anonym contacts visible?  
Thx Joey

---

<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 13, 2020, 10:38am UTC](https://forum.mautic.org/t/mautic-user-id-logic/17008/3 "2020-11-13T10:38:54Z")

</div>

Hi, thank you. That is the reason. Anonymous visitors are added as contact.  
How can I disable the tracking of visitors? I don’t need that.

 ![grafik](https://us1.discourse-cdn.com/flex020/uploads/mautic/original/2X/e/edc40d0927f712d82cc67d30e830b0cdc209a7bd.png)

---

<div class="post-metadata">

**Author:** ![joeyk](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/joeyk/32/11164_2.png) [@joeyk](https://forum.mautic.org/u/joeyk)\
**Post date:** [November 13, 2020, 10:51am UTC](https://forum.mautic.org/t/mautic-user-id-logic/17008/4 "2020-11-13T10:51:32Z")

</div>

You will be missing out 🙂  
You can go to Settings - Config - Tracking and turn everything off.

---

<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 13, 2020, 10:58am UTC](https://forum.mautic.org/t/mautic-user-id-logic/17008/5 "2020-11-13T10:58:00Z")

</div>

In the Tracking settings was already everything turned off. Not sure why anonymous visitors are still tracked.

 ![grafik](https://us1.discourse-cdn.com/flex020/uploads/mautic/original/2X/4/4cb5d423b515cb2c96d1f9e4952d3bf4f397d45c.png)  
 ![grafik](https://us1.discourse-cdn.com/flex020/uploads/mautic/original/2X/a/a41172591cfa95d7289cce24c52fe75e5d7be3e5.png)

---

<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 13, 2020, 4:18pm UTC](https://forum.mautic.org/t/mautic-user-id-logic/17008/6 "2020-11-13T16:18:12Z")

</div>

I clicked now on an IP to see the details.  
The anonymous users are not coming from my website, but somewhere from Mautic. Why is Mautic adding anonymous users to my contacts?

 ![grafik](https://us1.discourse-cdn.com/flex020/uploads/mautic/original/2X/2/26c57ad46549d800640fda46558ebe525314c939.png)

---

<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)
