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

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?

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 :slight_smile:

3 Likes

Thank you!
That will make life so much easier

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

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

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


    But it seems the tracking is not disabled for the links. I sent the email to a test-segment. The email statistics includes also those links:

  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.

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

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.

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

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

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

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

I am checking with the classic-editor.

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

Confirmation: :white_check_mark: 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!

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.

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:

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

1 Like