# Can you disable click tracking of privacy policy links in emails?

**URL:** <https://forum.mautic.org/t/can-you-disable-click-tracking-of-privacy-policy-links-in-emails/25896>\
**Category:** Product Support\
**Created:** [October 31, 2022, 11:30am UTC](https://forum.mautic.org/t/can-you-disable-click-tracking-of-privacy-policy-links-in-emails/25896 "2022-10-31T11:30:09Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![harry5](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/harry5/32/902_2.png) [@harry5](https://forum.mautic.org/u/harry5)\
**Post date:** [October 31, 2022, 11:30am UTC](https://forum.mautic.org/t/can-you-disable-click-tracking-of-privacy-policy-links-in-emails/25896/1 "2022-10-31T11:30:09Z")

</div>

My Mautic version is:4.2.1

We send out a number of emails and they all contain links to our privacy policy. Is there a way to stop Mautic from tracking clicks in emails to these (privacy policy) links so they don’t show up in the reporting and only track clicks on the call to action?

---

<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 31, 2022, 2:48pm UTC](https://forum.mautic.org/t/can-you-disable-click-tracking-of-privacy-policy-links-in-emails/25896/2 "2022-10-31T14:48:42Z")

</div>

Hi, here is an underrated, underdocumented feature in Mautic.

You can disable certain links by adding the `mautic:disable-tracking="true"` attribute to the link in the html code.

Your link before:  
`<a href="myevilcorporation.com/wewillspamyou">Privacy Policy</a>`

Link not to be tracked:  
`<a href="myevilcorporation.com/wewillspamyou" mautic:disable-tracking="true">Privacy Policy</a>`

Good luck to you 🙂

---

<div class="post-metadata">

**Author:** ![harry5](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/harry5/32/902_2.png) [@harry5](https://forum.mautic.org/u/harry5)\
**Post date:** [October 31, 2022, 3:23pm UTC](https://forum.mautic.org/t/can-you-disable-click-tracking-of-privacy-policy-links-in-emails/25896/3 "2022-10-31T15:23:50Z")

</div>

Thank you!  
That will make life so much easier

---

<div class="post-metadata">

**Author:** ![IonutOjicaDe](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/ionutojicade/32/7383_2.png) [@IonutOjicaDe](https://forum.mautic.org/u/IonutOjicaDe)\
**Post date:** [November 3, 2022, 11:00pm UTC](https://forum.mautic.org/t/can-you-disable-click-tracking-of-privacy-policy-links-in-emails/25896/4 "2022-11-03T23:00:38Z")

</div>

My Mautic version: 4.4.1  
PHP Version 7.4.29  
10.3.34-MariaDB-0ubuntu0.20.04.1

I suppose you are adding the additional `mautic:disable-tracking="true"` code in “code-mode-template” of the email:  
 ![image](https://us1.discourse-cdn.com/flex020/uploads/mautic/original/2X/8/8a41f4f201c735505ca17e125a7367c692645a23.png)

Is there the possibility to add this option using the **GrapesJS-Editor** or the **Classic-Editor**?

I tried:

1. using the GrapesJS-interface: there is no option to add this additional code:  
 ![image](https://us1.discourse-cdn.com/flex020/uploads/mautic/original/2X/d/d5189279e93954f77c546dc673c614dfdc3fe92b.png)

2. using the Edit-code button, I inserted the option inside the mj-element like this:  

3. I do not see another method by still using the **GrapesJS-Editor**. Would the **Classic-Editor** have this option?

To “downgrade” all the emails to using code-mode would be … annoying.

---

<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 3, 2022, 11:07pm UTC](https://forum.mautic.org/t/can-you-disable-click-tracking-of-privacy-policy-links-in-emails/25896/5 "2022-11-03T23:07:33Z")

</div>

You inserted the attribute to the image, not the link.

---

<div class="post-metadata">

**Author:** ![IonutOjicaDe](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/ionutojicade/32/7383_2.png) [@IonutOjicaDe](https://forum.mautic.org/u/IonutOjicaDe)\
**Post date:** [November 4, 2022, 5:27pm UTC](https://forum.mautic.org/t/can-you-disable-click-tracking-of-privacy-policy-links-in-emails/25896/6 "2022-11-04T17:27:38Z")

</div>

Yes, but there is no `<a>` tag in the mjml-code.  
I take your answer as: with **GrapesJS-Editor** cannot work.  
Therefore I will try to change to **Classic-Editor**.

---

<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 4, 2022, 6:03pm UTC](https://forum.mautic.org/t/can-you-disable-click-tracking-of-privacy-policy-links-in-emails/25896/7 "2022-11-04T18:03:31Z")

</div>

You can still use the anchor in text links.  
Maybe it would make sense to play around with

```auto
<mj-raw> 
  YOUR CUSTOM CODE
</mj-raw>

```

---

<div class="post-metadata">

**Author:** ![IonutOjicaDe](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/ionutojicade/32/7383_2.png) [@IonutOjicaDe](https://forum.mautic.org/u/IonutOjicaDe)\
**Post date:** [November 5, 2022, 7:15am UTC](https://forum.mautic.org/t/can-you-disable-click-tracking-of-privacy-policy-links-in-emails/25896/8 "2022-11-05T07:15:29Z")

</div>

Something new learned: how is the block `<mj-raw>` to be used. Thank you Joey !

Unfortunately, the tracking is still there.

1. I added the attribute on the first image appearing by default when inserting the mj-raw block:  

2. I checked that the attribute was saved - passed.

3. The email is a segment email. The segment is a test segment, where I manually add email-address.

4. Sent the email to the added contact in segment.

5. Checked in outlook the email link:  
 ![image](https://us1.discourse-cdn.com/flex020/uploads/mautic/original/2X/6/679ccca89b2d848d65edb25f59ca8a1a49e43b0d.png)

So the attribute does not work either with the mj-raw .

I am checking with the **classic-editor**.

---

<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 5, 2022, 8:12am UTC](https://forum.mautic.org/t/can-you-disable-click-tracking-of-privacy-policy-links-in-emails/25896/9 "2022-11-05T08:12:10Z")

</div>

I’m sorry that didn’t work. I don’t have better idea now.

---

<div class="post-metadata">

**Author:** ![IonutOjicaDe](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/ionutojicade/32/7383_2.png) [@IonutOjicaDe](https://forum.mautic.org/u/IonutOjicaDe)\
**Post date:** [November 5, 2022, 9:05am UTC](https://forum.mautic.org/t/can-you-disable-click-tracking-of-privacy-policy-links-in-emails/25896/10 "2022-11-05T09:05:56Z")

</div>

Confirmation: ✅ it works with **classic-editor**.  
I suspect that the link with the attribute must not exist anymore inside the email without the attribute, otherwise I suppose it will not work - it would have also no purpose then.

_I wanted long ago to revert to **classic-editor** , as I find **GrapesJS-Editor** so buggy. This is the moment!_

---

<div class="post-metadata">

**Author:** ![batijko](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/batijko/32/6450_2.png) [@batijko](https://forum.mautic.org/u/batijko)\
**Post date:** [July 18, 2024, 11:47am UTC](https://forum.mautic.org/t/can-you-disable-click-tracking-of-privacy-policy-links-in-emails/25896/11 "2024-07-18T11:47:47Z")

</div>

Is there still no solution for this problem? I’m using the GrapesJS editor, and it’s mind-boggling that something this trivial is not working.

I’m trying to add a custom link, which is saved inside a field in Mautic, to a button. However, every time I add the token to the button and send out the email, the customer receives a broken link because the tracking code is also added to that link. I haven’t found any way to solve or work around this issue.

---

<div class="post-metadata">

**Author:** ![animotionhelp](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/animotionhelp/32/13148_2.png) [@animotionhelp](https://forum.mautic.org/u/animotionhelp)\
**Post date:** [November 16, 2024, 12:50pm UTC](https://forum.mautic.org/t/can-you-disable-click-tracking-of-privacy-policy-links-in-emails/25896/12 "2024-11-16T12:50:25Z")

</div>

this is not working in Mautic: v3.1.0  
Email editor with code editor is not able to save changed.  
cab anyone suggest better solution.  
also disabled from here:

 ![image](https://us1.discourse-cdn.com/flex020/uploads/mautic/original/2X/f/f313b122285184d2cd89be3b54320f2a41169ef8.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 16, 2024, 1:10pm UTC](https://forum.mautic.org/t/can-you-disable-click-tracking-of-privacy-policy-links-in-emails/25896/13 "2024-11-16T13:10:38Z")

</div>

You are using a very old system, you should upgrade.

---

<div class="post-metadata">

**Author:** ![adiux](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/adiux/32/5793_2.png) [@adiux](https://forum.mautic.org/u/adiux)\
**Post date:** [August 27, 2025, 3:12pm UTC](https://forum.mautic.org/t/can-you-disable-click-tracking-of-privacy-policy-links-in-emails/25896/14 "2025-08-27T15:12:42Z")

</div>

Does this still work? In my tests in Mautic version 6 it did not work.

---

<div class="post-metadata">

**Author:** ![adiux](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/adiux/32/5793_2.png) [@adiux](https://forum.mautic.org/u/adiux)\
**Post date:** [September 4, 2025, 8:54am UTC](https://forum.mautic.org/t/can-you-disable-click-tracking-of-privacy-policy-links-in-emails/25896/15 "2025-09-04T08:54:18Z")

</div>

I found the problem:

The syntax of the existing tag is not HTML conform, so it can lead to problems. Therefore, I propose we introduce the same parameter, but in an HTML conform way. For e.g. version 7 we can keep both variants around. And then maybe with version 8 we remove the old syntax?

Hello, [test](http://test.com)

becomes now:

Hello, [test](http://test.com)

@rahul.shinde will open a PR shortly.

---

<div class="post-metadata">

**Author:** ![mattewwade06](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/mattewwade06/32/14401_2.png) [@mattewwade06](https://forum.mautic.org/u/mattewwade06)\
**Post date:** [September 5, 2025, 11:32am UTC](https://forum.mautic.org/t/can-you-disable-click-tracking-of-privacy-policy-links-in-emails/25896/16 "2025-09-05T11:32:28Z")

</div>

You can disable tracking for certain links by adding `mautic:disable-tracking="true"` to the anchor tag works well for privacy policy links.

---

<div class="post-metadata">

**Author:** ![andrew\_c3](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/andrew_c3/32/13547_2.png) [@andrew\_c3](https://forum.mautic.org/u/andrew_c3)\
**Post date:** [September 16, 2025, 1:06pm UTC](https://forum.mautic.org/t/can-you-disable-click-tracking-of-privacy-policy-links-in-emails/25896/18 "2025-09-16T13:06:00Z")

</div>

Hello,

I am using mautic:disable-tracking=“true” in anchor tags on M6.0.3 and its works well.

However if you put it inside a mj-button it does not disable link tracking in the button which is a real shame as what else is a button used for i.e. linking to urls ?

If you define it inside an mj-button then all anchor tags were it is defined underneath in the code link tracking starts working again until you remove it from the above mj-button.

Looks like the Mautics html sanitiser detects it inside a mj-button and disables it use everywhere thereafter which must be a bug.

Having mautic:disable-tracking=“true” work inside a mj-button would be a very useful thing indeed. Can I reach out to a developer to look into this issue.

Does anyone else in the community agree ?

Thanks

---

<div class="post-metadata">

**Author:** ![andrew\_c3](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/andrew_c3/32/13547_2.png) [@andrew\_c3](https://forum.mautic.org/u/andrew_c3)\
**Post date:** [September 16, 2025, 1:26pm UTC](https://forum.mautic.org/t/can-you-disable-click-tracking-of-privacy-policy-links-in-emails/25896/19 "2025-09-16T13:26:28Z")

</div>

Hello,

Update.

My scenario - I have:  
Url links pointing to websites that have link tracking support.  
Url links pointing to websites that don’t currently have link tracking support.

Therefore I need to be able to disable link tracking about 50% of the time.

I am using mj-buttons and anchor tags so I have to turn off all link tracking on the mautic server at the moment which is a real shame.

Yes I have seen mj-text and mj-raw solutions which are workarounds for mj-button. My view is why not fix the html code sanitiser to allow the use in mj-button as well rather than always using workarounds.

Thanks.

---

<div class="post-metadata">

**Author:** ![dirk\_s](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/dirk_s/32/748_2.png) [@dirk\_s](https://forum.mautic.org/u/dirk_s)\
**Post date:** [September 17, 2025, 9:19am UTC](https://forum.mautic.org/t/can-you-disable-click-tracking-of-privacy-policy-links-in-emails/25896/20 "2025-09-17T09:19:44Z")

</div>

@andrew_c3 did you find out, if this is a Mautic or GrapeJS issue or an issue with MJML itself?  
Then it would be good, if you’d create an issue in either of the projects…

Thanks a lot!

---

<div class="post-metadata">

**Author:** ![andrew\_c3](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/andrew_c3/32/13547_2.png) [@andrew\_c3](https://forum.mautic.org/u/andrew_c3)\
**Post date:** [September 17, 2025, 12:38pm UTC](https://forum.mautic.org/t/can-you-disable-click-tracking-of-privacy-policy-links-in-emails/25896/21 "2025-09-17T12:38:40Z")

</div>

Hello **[dirk\_s](https://forum.mautic.org/u/dirk_s),**

I write the code for my themes and emails manually by hand.

I don’t use the GrapesJS builder therefore it must be a Mautic issue.

What I’m asking for is new support for mj-button therefore I have posted a new feature request for the developers to consider.

> [@Support for mautic:disable-tracking inside mj-button tags](https://forum.mautic.org/t/support-for-mautic-disable-tracking-inside-mj-button-tags/36549):
>
> Hello, I’m currently running Mautic 6.0.3 I’ve encountered an issue in Mautic when using `mautic:disable-tracking` inside an `mj-button` tag in MJML-based email templates. Currently, the `mautic:disable-tracking` attribute works as expected on standard tags, but it does not work inside `mj-button` tags. Since MJML is widely used for building responsive emails and `mj-button` is a core component this limitation makes it difficult to exclude certain links (such as unsubscribe, legal, or third-p…

Thanks.
