# Site tracking doesn't work in a campaign

**URL:** <https://forum.mautic.org/t/site-tracking-doesnt-work-in-a-campaign/29500>\
**Category:** Product Support\
**Created:** [October 1, 2023, 6:12pm UTC](https://forum.mautic.org/t/site-tracking-doesnt-work-in-a-campaign/29500 "2023-10-01T18:12:44Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![stefan-franz](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/stefan-franz/32/12758_2.png) [@stefan-franz](https://forum.mautic.org/u/stefan-franz)\
**Post date:** [October 1, 2023, 6:12pm UTC](https://forum.mautic.org/t/site-tracking-doesnt-work-in-a-campaign/29500/1 "2023-10-01T18:12:44Z")

</div>

**Your software**  
My Mautic version is: 4.4.10  
My PHP version is: 8.0  
My Database type and version is: 10.6

**Your problem**  
My problem is: It seems tracking doesn’t work:  
I made an Double Opt-In campaign for new contacts as here described: [https://automatethis.pro/de/mautic-double-opt-in/](https://automatethis.pro/de/mautic-double-opt-in/)

After a new contact fills out the form he gets a confirmation e-mail from Mautic with the link to this site:

> **[Newsletter Anmeldung bestätigt - Stefan Franz](https://www.stefan-franz.de/newsletter-bestaetigt/)**
>
> Gratulation! Du bist dabei! Schön dass Du Dich für meinen Newsletter angemeldet hast.

After clicking to this link and visit this site, Mautic should add the contact to the “Active” segment and remove it from “Pending”.  
But that doesn’t work and i’m new on Mautic.

Is the Mautic code right in my site? (in the footer?)

Here are the cron jobs? Have i all what i need? Errors?

```auto
* * * * * php /var/www/html/mautic/bin/console mautic:campaigns:trigger
*/5 * * * * php /var/www/html/mautic/bin/console mautic:campaigns:rebuild
*/15 * * * * php /var/www/html/mautic/bin/console mautic:segments:update    
* * * * * php /var/www/html/mautic/bin/console mautic:broadcasts:send
* * * * * php /var/www/html/mautic/bin/console mautic:emails:send
0 3 * * * php /var/www/html/mautic/bin/console mautic:unusedip:delete
0 4 * * * php /var/www/html/mautic/bin/console mautic:maintenance:cleanup --days-old=90 --no-interaction

```

My Campaign

 ![Mautic Double Opt-In Campaign](https://us1.discourse-cdn.com/flex020/uploads/mautic/original/2X/1/1b18282925e4f0cba116661911589271f740915f.png)

Thanks in advance for your help.  
Greeting, Stefan

---

<div class="post-metadata">

**Author:** ![Leon\_Oltmanns](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/leon_oltmanns/32/10629_2.png) [@Leon\_Oltmanns](https://forum.mautic.org/u/Leon_Oltmanns)\
**Post date:** [October 2, 2023, 1:45pm UTC](https://forum.mautic.org/t/site-tracking-doesnt-work-in-a-campaign/29500/2 "2023-10-02T13:45:50Z")

</div>

Hi @stefan-franz,  
have you you checked wether tracking works at all on your website, thus meaning the tracking code has been implemented correctly.

If that is the case, I would check the Campaign-Step “Besucht eine Seite” for possible typos or http/https mistakes.

---

<div class="post-metadata">

**Author:** ![stefan-franz](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/stefan-franz/32/12758_2.png) [@stefan-franz](https://forum.mautic.org/u/stefan-franz)\
**Post date:** [October 2, 2023, 2:42pm UTC](https://forum.mautic.org/t/site-tracking-doesnt-work-in-a-campaign/29500/3 "2023-10-02T14:42:18Z")

</div>

Now i found the reason:

> [@Link Tracking in Emails not working](https://forum.mautic.org/t/link-tracking-in-emails-not-working/18655/2):
>
> Hi, If you logged in as admin into your Mautic account from the same browser where you are testing, you won’t see any activity registered including link clicks. Is this the case?

If the browser in logged in Mautic, it doesn’t tracking

I thought its a bug, but here is the description from my github Issue

> <https://github.com/mautic/mautic/issues/12757>
>
> \### Mautic Version
> 
> 4.4.x series
> 
> \### PHP version
> 
> 8.0.30
> 
> \### What browsers are… you seeing the problem on?
> 
> Firefox
> 
> \### What happened?
> 
> As here described i searched a whole day why the tracking is not working. 
> https://github.com/mautic/mautic/issues/12755#event-10523558037
> 
> 
>  
> 
> \### How can we reproduce this issue?
> 
> Now i found the reason: I was logged in in Mautic and testet the tracking (e-mail Link) with the same Browser.
> https://forum.mautic.org/t/link-tracking-in-emails-not-working/18655/2
> 
> It works if
> \- i'm outlogged
> \- I use another browser. 
> 
> I think its a bug - or need a description somewhere
> 
> \### Relevant log output
> 
> \_No response\_
> 
> \### Code of Conduct
> 
> \- \[X\] I confirm that I have read and agree to follow this project's Code of Conduct

> Hi there, this is by design because when you are testing Mautic you do not want your own clicks to be logged.
> 
> It is explicitly mentioned in the documentation here: [Contact tracking | Mautic](https://docs.mautic.org/en/contacts/manage-contacts/contact-monitoring#website-monitoring)

---

<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:** [October 3, 2023, 8:20am UTC](https://forum.mautic.org/t/site-tracking-doesnt-work-in-a-campaign/29500/4 "2023-10-03T08:20:24Z")

</div>

This is not a bug, it is a feature.  
You don’t want to be tracked if you are an administrator.
