Has adding class="mktNoTrack" to an email link made of variables the same effect as unchecking the "track link" box | Community
Skip to main content
Grégoire_Miche2
New Participant
November 14, 2016
Solved

Has adding class="mktNoTrack" to an email link made of variables the same effect as unchecking the "track link" box

  • November 14, 2016
  • 1 reply
  • 4895 views

With the new email template, we are now replacing button CTA editable zone with 2 variables (one for the URL, one for the text). This enables to limit actions from the user and the opportunities to break CSS styling of the link.

The problem is that, some users are requesting to insert an email address in the link, to generate an <a href="mailto:email@company.com"> link type.

When creating the link in a text element, the user may uncheck the "track link" box. But with Variables, there is no such dialog box, so we want to simply add the class="mktNoTrack" to the <a> tag. The template code would look like this:

<a class="mktNoTrack" href="mailto:${CTAemailaddress}">${CTAText}</a>

Will this has the effect of removing Marketo tracking on this CTA and therefore make it work as intended on all email clients?

-Greg

@Justin Cooperman​

Best answer by Justin_Cooperm2

Yes, it will always work if you add class="mktNoTrack" or class="mktNoTok" to any anchor <a> in your email. What I would recommend if you are using variables for your link is to add another variable that is a "List" variable. It would just say "enable tracking" or "disable tracking" to the user in the email editor and the template would just insert class="mktNoTrack" on the <a> or omit it.

Justin

1 reply

SanfordWhiteman
New Participant
November 14, 2016

The class and the checkbox are synonyms. Unless there's a bug, which you should see quickly via testing.

Grégoire_Miche2
New Participant
November 14, 2016

Hi Sanford,

Thx In fact my question is: will it work together with the variables ?

-Greg

SanfordWhiteman
New Participant
November 15, 2016

I'll check it soon and tell you. If not, that'd be a bug.