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.
Solved! Go to Solution.
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.
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.
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?
That would be fine (would be tracked).
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?
With respect to the forward problem , the following question:
The setup is the following:
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 )