Support for mautic:disable-tracking inside mj-button tags

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-party links) from being tracked when using MJML buttons.

Request

Bug fix:
Ensure `mautic:disable-tracking` is properly applied to links generated inside `mj-button` tags.

Alternative (if not possible):
Provide an additional MJML compatible attribute or mechanism that allows disabling tracking for `mj-button` links.

Benefit:
This would allow users to build fully MJML-compliant, responsive emails without having to switch to raw tags just to disable tracking. It improves consistency and reduces potential deliver-ability or compliance issues.

Thank you for considering this improvement and for your continued work on making Mautic more flexible and user-friendly.

Thanks.

Hi @andrew_c3 . I came across the same limitation. The problem is that it is related to MJML. So you would have to create your own MJML to HTML service. That is what I did. Let me know if you would be interested in using our mjml2html implementation. In addition, it allows you to do responsive stuff. E.g. show a button or section only on mobile. More features to come.

Hello adiux,

Thanks for your email and kind offer.

Not being able to disable link tracking inside an mj-button tag is definitely inconvenient. I know Mautic is sanitising html and mjml code and I plan to look at that issue again soon as I think that is the root cause.

I have temporarily disabled all link tracking on my production Mautic instance therefore my mj-button tags work on both mobile and desktop.

However in the near future I will be turning link tracking back on again when I have more time and I will try and create a button without using an mj-button tag as a first step.

I will be back in contact to look at your implementation if I cant come up with an alternate workaround as I need it to work on both desktop and mobile. But I really appreciate your kind offer.

Thanks

Sure @andrew_c3, let me know when it becomes interesting to you. I have done a new email builder for Mautic. At the moment, it is only available for Aivie customers. But I will make it available soon to the public. This feature is included. If you have other feature requests, I’m always very interested to hear them.

Will list the plugin here: Aivie Mautic Plugins