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
Solved! Go to Solution.
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
The class and the checkbox are synonyms. Unless there's a bug, which you should see quickly via testing.
Hi Sanford,
Thx In fact my question is: will it work together with the variables ?
-Greg
I'll check it soon and tell you. If not, that'd be a bug.
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
Can this logic somehow also be applied to a Marketo editable image module -- either at the email or email template level?
Hi Robert,
Supposedly, the image would be wrapped with a link. The answer is yes, that should work.
-Greg
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.
Justin, how does one reconcile that the editable image module has class mktoImg, and turning off the tracking requires a class of mktNoTrack? Thanks!
class is treated as a multivalued attribute (think about the special .{classname} CSS selector).