# Exclude anonymous contacts (system dashboard pages)

**URL:** <https://forum.mautic.org/t/exclude-anonymous-contacts-system-dashboard-pages/22925>\
**Category:** Development\
**Created:** [March 4, 2022, 10:04am UTC](https://forum.mautic.org/t/exclude-anonymous-contacts-system-dashboard-pages/22925 "2022-03-04T10:04:24Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![nikola1995](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/nikola1995/32/6488_2.png) [@nikola1995](https://forum.mautic.org/u/nikola1995)\
**Post date:** [March 4, 2022, 10:04am UTC](https://forum.mautic.org/t/exclude-anonymous-contacts-system-dashboard-pages/22925/1 "2022-03-04T10:04:24Z")

</div>

Anonymous contacts are beeing created on Mautic dashboard pages (on page refresh), instead just on my API calls. This causes real contacts ids (auto increment field) to be greater than they should be.  
Anyone with idea how to fix it?

---

<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:** [March 4, 2022, 10:29am UTC](https://forum.mautic.org/t/exclude-anonymous-contacts-system-dashboard-pages/22925/2 "2022-03-04T10:29:57Z")

</div>

These contacts are made because your tracking works.  
If you disable tracking, there won’t be any anonymous contacts.

Joey

---

<div class="post-metadata">

**Author:** ![nikola1995](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/nikola1995/32/6488_2.png) [@nikola1995](https://forum.mautic.org/u/nikola1995)\
**Post date:** [March 4, 2022, 11:07am UTC](https://forum.mautic.org/t/exclude-anonymous-contacts-system-dashboard-pages/22925/3 "2022-03-04T11:07:29Z")

</div>

I understood what you are thinking about, but I want dashboard pages to be excepted from tracking and to keep maybe some future external pages… Is there any chance for that?

Thanks in advance.

Nikola

---

<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:** [March 4, 2022, 12:02pm UTC](https://forum.mautic.org/t/exclude-anonymous-contacts-system-dashboard-pages/22925/4 "2022-03-04T12:02:08Z")

</div>

Hello Nikola,  
The easy way to do this is: remove the tracking where you don’t want tracking 🙂  
In the tracking script this part is responsible for pushing in data:

`mt('send', 'pageview');`

If you add a javascript condition for the current url, then you can skip sending data.

Please note, that Mautic will not track admins, as the admin cookie placed in the browser will prevent that (This is why so hard to test Mautic campaigns with the same browser as you use for administration.) and you can turn off tracking 404 pages in settings.

---

<div class="post-metadata">

**Author:** ![nikola1995](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/nikola1995/32/6488_2.png) [@nikola1995](https://forum.mautic.org/u/nikola1995)\
**Post date:** [March 7, 2022, 12:01pm UTC](https://forum.mautic.org/t/exclude-anonymous-contacts-system-dashboard-pages/22925/5 "2022-03-07T12:01:52Z")

</div>

Hello,  
I still dont get what I have to do. I did not edit origin-source code…  
Do I need to do that? Which file…? Or maybe my cookies are not set properly…

Thanks

---

<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:** [March 7, 2022, 3:03pm UTC](https://forum.mautic.org/t/exclude-anonymous-contacts-system-dashboard-pages/22925/6 "2022-03-07T15:03:09Z")

</div>

Hi,  
How did you add the Mautic tracking to your pages?  
I need to know in order to help you with the solution.  
Thx,  
Joey

---

<div class="post-metadata">

**Author:** ![renatocron](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/renatocron/32/6936_2.png) [@renatocron](https://forum.mautic.org/u/renatocron)\
**Post date:** [March 7, 2022, 3:09pm UTC](https://forum.mautic.org/t/exclude-anonymous-contacts-system-dashboard-pages/22925/7 "2022-03-07T15:09:31Z")

</div>

Also, anonymous contacts are created when e-mails are opened if tracking is enabled, so maybe that’s why new contacts are appearing when you refresh the dashboard

---

<div class="post-metadata">

**Author:** ![nikola1995](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/nikola1995/32/6488_2.png) [@nikola1995](https://forum.mautic.org/u/nikola1995)\
**Post date:** [March 8, 2022, 9:18am UTC](https://forum.mautic.org/t/exclude-anonymous-contacts-system-dashboard-pages/22925/8 "2022-03-08T09:18:29Z")

</div>

Hi Joey,  
I did not add anything… I cloned Mautic repo, installed it on server instance… I did not modify anything in source code…

---

<div class="post-metadata">

**Author:** ![nikola1995](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/nikola1995/32/6488_2.png) [@nikola1995](https://forum.mautic.org/u/nikola1995)\
**Post date:** [March 8, 2022, 9:19am UTC](https://forum.mautic.org/t/exclude-anonymous-contacts-system-dashboard-pages/22925/9 "2022-03-08T09:19:04Z")

</div>

I think this is not my case, i have not set campaign or email sending yet…

---

<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:** [March 8, 2022, 3:36pm UTC](https://forum.mautic.org/t/exclude-anonymous-contacts-system-dashboard-pages/22925/10 "2022-03-08T15:36:57Z")

</div>

Two answers will bring us closer to the solution:

1. Did you add a Mautic tracking code to your website?
2. Could you plz share what URL the anonymous visitors checking out?  
You can see this by opening the contact and expanding the URL view event.

Joey

---

<div class="post-metadata">

**Author:** ![arielbsd](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/arielbsd/32/6597_2.png) [@arielbsd](https://forum.mautic.org/u/arielbsd)\
**Post date:** [May 9, 2022, 12:21am UTC](https://forum.mautic.org/t/exclude-anonymous-contacts-system-dashboard-pages/22925/11 "2022-05-09T00:21:48Z")

</div>

@joeyk Is there a way to disable the tracking script (mtc.js) on a specific landing page?

The tracking script is automatically added to every mautic landing page.

I have a very high-traffic website, and I don’t want to create millions of anonymous contacts.

---

<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:** [May 9, 2022, 4:28am UTC](https://forum.mautic.org/t/exclude-anonymous-contacts-system-dashboard-pages/22925/12 "2022-05-09T04:28:07Z")

</div>

Is this one specific page or a list of pages?  
What is tour cms?

---

<div class="post-metadata">

**Author:** ![mikew](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/mikew/32/5156_2.png) [@mikew](https://forum.mautic.org/u/mikew)\
**Post date:** [May 9, 2022, 7:17am UTC](https://forum.mautic.org/t/exclude-anonymous-contacts-system-dashboard-pages/22925/13 "2022-05-09T07:17:32Z")

</div>

@nikola1995 I do not really have much to add towards the solution, however one of my posts about creating custom dashboards could be of interest for you. Provides much greater flexibility and customization of what you or a client would prefer to see when looking at a dashboard. The post can be found [here](https://forum.mautic.org/t/surge-mautic-dashboard-into-something-amazing/23864).

---

<div class="post-metadata">

**Author:** ![arielbsd](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/arielbsd/32/6597_2.png) [@arielbsd](https://forum.mautic.org/u/arielbsd)\
**Post date:** [May 9, 2022, 4:01pm UTC](https://forum.mautic.org/t/exclude-anonymous-contacts-system-dashboard-pages/22925/14 "2022-05-09T16:01:56Z")

</div>

@joeyk a specific mautic landing page. it’s hosted in the same mautic not in a third party CMS.

Mautic, by default, adds the tracking code to all of its hosted landing pages at the header.

NOTE: I’m using the Neopolitan theme, just in case that has any importance.
