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

Highlighted

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

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

9 REPLIES 9
Highlighted
Level 10 - Community Moderator

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

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

Highlighted

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

Hi Sanford,

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

-Greg

Highlighted
Level 10 - Community Moderator

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

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

Highlighted

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

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

Highlighted

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

Can this logic somehow also be applied to a Marketo editable image module -- either at the email or email template level?

Highlighted

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

Hi Robert,

Supposedly, the image would be wrapped with a link. The answer is yes, that should work.

-Greg

Highlighted

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

Yes, it will work as Greg says. However, you'd have to put that in the code yourself, as we don't have a way to do this in the WYSIWYG edit image dialog.

Highlighted

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

Justin, how does one reconcile that the editable image module has class mktoImg, and turning off the tracking requires a class of mktNoTrack? Thanks!

Highlighted
Level 10 - Community Moderator

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

class is treated as a multivalued attribute (think about the special .{classname} CSS selector).