Tracking Links in an Email that does not conform the Marketo Email Syntax

Manish_Khemani1
Level 3

Tracking Links in an Email that does not conform the Marketo Email Syntax

We had an Agency deisgn an urgent emailer with their HTML expertise. They did not follow Marketo Email Syntax i.e. https://docs.marketo.com/display/public/DOCS/Email+Template+Syntax since there was not much time. 

We created a sample email in Marketo and overwrote the code from the Agency's HTML. Now the ask is how do I enable tracking links and embedding mkt_tok on the links within the email?

Please assist asap.

Thanks - Manish

2 REPLIES 2
SanfordWhiteman
Level 10 - Community Moderator

Re: Tracking Links in an Email that does not conform the Marketo Email Syntax

Links are automatically tracked by default. You should never have to manually add anything to a link. 

You lose tracking if:

  • you use an entire {{my.token}} or {{lead.token}} as an <a href>. You have to pull out the protocol so the token only includes the hostname + path + query + hash (that is, the token only stores example.com/path/page?k=v as opposed to http://example.com/path/page?k=v).
  • you fail to output an entire <a> tag from a Velocity script

But both of these result from making more use of Marketo features, not less.

Josh_Hill13
Level 10 - Champion Alumni

Re: Tracking Links in an Email that does not conform the Marketo Email Syntax

The only area of concern would be if you were attempting to use Email Modules in the "Marketo HTML" special code. But that's really a template issue.

Otherwise, what Sanford said.