SOLVED

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

Go to solution
Grégoire_Miche2
Level 10

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

1 ACCEPTED SOLUTION

Accepted Solutions
Justin_Cooperm2
Level 10

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

View solution in original post

10 REPLIES 10
SanfordWhiteman
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.

Grégoire_Miche2
Level 10

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

SanfordWhiteman
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.

Justin_Cooperm2
Level 10

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

Robert_Kelen3
Level 4

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?

Grégoire_Miche2
Level 10

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

Justin_Cooperm2
Level 10

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.

Robert_Kelen3
Level 4

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!

SanfordWhiteman
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).