I’m trying to setup an AMP email template, but when tracking is enabled on Klaviyo, it tends to over-write some of my AMP template code.
For example,
<div hidden ehidden]="rating < 9">
gets converted to
<div hidden rating < 9 >
This leads to ‘Invalid AMP error’ when I open the email in my gmail client because the markup is incorrectly constructed.
This issue happens when either Email-to-Website tracking is enabled from Account Settings, or Tracking enabled when sending the Campaign. This seems to be caused because of Klaviyo’s engine allowing custom tracking events like below, which is in conflict with AMP variables.
<input type="hidden" name="event FooBar]" value="Foo Bar">
Adding {% verbatim %} tags does not help to resolve this.
Is there a workaround to this?