Missing styles for tracked links in snippet updated via API
I'm using Marketo's REST API to update snippet's content which is HTML code with several URLs. By default all links are tracked and are replaced when emails are sent.
The issue is that inline styles specified for those a elements disappear. Example:
Snippet's <a class="mktNoTrack" href="example.com" style="color: #5b6770; text-decoration: none;" target="_blank">Example</a>
is converted in email to
<a href="go.example.com/123" target="_blank">Example</a>
class="mktNoTrack" doesn't make any use, it is just ignored. However, if I open the snippet for edit in Marketo's dashboard and it gets autosaved the styles appear okay in tracked link. Very weird. As snippet's update is automated opening it manually each time is not a solution to the problem ![]()
Any ideas how to deal with it?