SOLVED

Re: How to configure Gmail Annotation in Email Script with Velocity Token. Looking for examples.

Go to solution
Elsa_Man3
Level 2

Re: How to configure Gmail Annotation in Email Script with Velocity Token. Looking for examples.

 

Hello we followed these instructions but getting a Marketo error: Marketo does not allow javascript or script tags in email HTML
Please refresh your browser.

 

We added this script under the <head>

<script type="application/ld+json">
    {{my.googleannotation}}
</script>

 

The token:

[
{
"@context": "http://schema.org/",
"@type": "PromotionCard",
"image": "https://info.ticketinformationcs.com/rs/525-SZF-856/images/hrl-adl-23-1-1.10-image3-290px.png",
"url": "https://homelottery.com.au/grand-prize/"
},
{
"@context": "http://schema.org/",
"@type": "PromotionCard",
"image": "https://info.ticketinformationcs.com/rs/525-SZF-856/images/hrl-adl-23-1-1.10-image3-290px.png",
"url": "https://homelottery.com.au/"

},
]

 What are we doing wrong? it sounds like it does work for others. Appreciate any help, thanks in advance!

SanfordWhiteman
Level 10 - Community Moderator

Re: How to configure Gmail Annotation in Email Script with Velocity Token. Looking for examples.

Hi Elsa, when using VTL to skip other levels of validation, everything would have to be output from the token methinks.

P.S. Is anyone from your team at Summit?
Elsa_Man3
Level 2

Re: How to configure Gmail Annotation in Email Script with Velocity Token. Looking for examples.

Thanks for the swift reply Sanford! 

 

Does that mean we should have everything in the token itself? 

So this would all be in the email script token: 

<script type="application/ld+json">
[
{
"@context": "http://schema.org/",
"@type": "PromotionCard",
"image": "https://info.ticketinformationcs.com/rs/525-SZF-856/images/hrl-adl-23-1-1.10-image3-290px.png",
"url": "https://homelottery.com.au/grand-prize/"
},
{
"@context": "http://schema.org/",
"@type": "PromotionCard",
"image": "https://info.ticketinformationcs.com/rs/525-SZF-856/images/hrl-adl-23-1-1.10-image3-290px.png",
"url": "https://homelottery.com.au/"

},
]
</script>

 

And then in the email template, I'd just insert the token under the <head>

 

<head>
    {{my.googleannotation}}
</head>

 

And no unfortunately we won't be at the summit this year after all! Will you be attending? Would have been great to meet up.