SOLVED

Re: Tracking email link clicked from custom loaded html

Go to solution
Franky_Ruyssch2
Level 4

Tracking email link clicked from custom loaded html

Via an external tool I render html for each contact part of a certain campaign. ( Done with Google Sheets )

That html is loaded into a lead field in marketo ( via a list import ). Part of the html is a link ( in fact several links , simple <a href="XXX">).

That lead field ( with the html ) is used inside an email via {{lead.xxx}}.


Hoe can I track 'link clicked events' on these link(s). It seems that by default the link clicks are not captured.

Franky Ruysschaert
3 ACCEPTED SOLUTIONS

Accepted Solutions
SanfordWhiteman
Level 10 - Community Moderator

Re: Tracking email link clicked from custom loaded html

You‘d need to re-output the HTML using Velocity. Very much like https://nation.marketo.com/t5/product-blogs/creating-trackable-links-even-when-a-token-includes-http... except (and this won’t be particularly fun, since Marketo no longer supports the XML/XHTML parser in Velocity) you need to parse out the links.

 

While it’s doable, even as a Velocity expert, I would shy away from this. I’d pass the HTML to a webhook that parses it into a JSON block (Editor.js-style) representing the different HTML elements and write that back to the field. That will make the Velocity more reasonable.

View solution in original post

SanfordWhiteman
Level 10 - Community Moderator

Re: Tracking email link clicked from custom loaded html

You can’t solve the forwarded email problem — well, not really a problem, just a reality.

View solution in original post

SanfordWhiteman
Level 10 - Community Moderator

Re: Tracking email link clicked from custom loaded html

You can display a {{Company.Token}}. But I don't see what that solves, because the person's browser session will still be associated with the original recipient. As long as the link has the mkt_tok in it, this will always be true.

View solution in original post

7 REPLIES 7
SanfordWhiteman
Level 10 - Community Moderator

Re: Tracking email link clicked from custom loaded html

You‘d need to re-output the HTML using Velocity. Very much like https://nation.marketo.com/t5/product-blogs/creating-trackable-links-even-when-a-token-includes-http... except (and this won’t be particularly fun, since Marketo no longer supports the XML/XHTML parser in Velocity) you need to parse out the links.

 

While it’s doable, even as a Velocity expert, I would shy away from this. I’d pass the HTML to a webhook that parses it into a JSON block (Editor.js-style) representing the different HTML elements and write that back to the field. That will make the Velocity more reasonable.

Franky_Ruyssch2
Level 4

Re: Tracking email link clicked from custom loaded html

If the lead field with the (outside marketo ) generated URL would contain something like "domain/my-landing-page.html", note the absence of http:// or https://

and I would output this like

<a href="http://{{lead.fieldname}}">XXX</a>

Would I need any velocity here? And will the link be tracked?

Franky Ruysschaert
SanfordWhiteman
Level 10 - Community Moderator

Re: Tracking email link clicked from custom loaded html

That would be fine (would be tracked).

Franky_Ruyssch2
Level 4

Re: Tracking email link clicked from custom loaded html

And if someone forwards the mail, what would the behavior be? Since the landingpage - which has been used in the link(s) - also contains custom (personalized) html?

Would the person to who the email has been forwarded see the content in the LP attached to the 'forwarder' ?

If not, can this be solved?

Franky Ruysschaert
SanfordWhiteman
Level 10 - Community Moderator

Re: Tracking email link clicked from custom loaded html

You can’t solve the forwarded email problem — well, not really a problem, just a reality.
Franky_Ruyssch2
Level 4

Re: Tracking email link clicked from custom loaded html

With respect to the forward problem , the following question:

 

The setup is the following:

  • Our CRM keeps track of modules for which we think our client(s) is a good candidate.
  • Outside Marketo we generate custom html ( a list of those modules, with images and movies )
  • That html is copied via a list import into a lead field, his/her landing page content ( for the leads selected from that company )

Would it be a solution ( to solve the forward problem ) to copy the html content into a company field ( over API ), and display the company field instead of the lead field on the landing page.
Or is this not possible?

 

As such I would try to solve the forward issue, because the forwarded person belongs to the same company?
( And that person does not necessarily has ‘personal’ landing page content )

Franky Ruysschaert
SanfordWhiteman
Level 10 - Community Moderator

Re: Tracking email link clicked from custom loaded html

You can display a {{Company.Token}}. But I don't see what that solves, because the person's browser session will still be associated with the original recipient. As long as the link has the mkt_tok in it, this will always be true.