SOLVED

Re: Has anyone been successful in adding Gmail annotation to a Marketo email template?

Go to solution
dbassett
Level 2

Re: Has anyone been successful in adding Gmail annotation to a Marketo email template?

Awesome, thank you for the clarification! I'm going to try this method again, I had misunderstood the correct way to do it.

 

I appreciate the help!

shelliezollin
Level 2

Re: Has anyone been successful in adding Gmail annotation to a Marketo email template?

Hi! I've added this script to the head of my email, but I don't know what to add to the Email Script Token. Can someone assist?

Step 2 - I added script to the <head" with token - 

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN">

<html>

  <head>

    <script type="application/ld+json">

   {{my.Gmail Annotation}}

    </script>

  </head>


Step 2 - I then created a token in the email program: 
Click Email Script > click edit > Paste - 

 

[{

           "@context": "http://schema.org/",

          "@type": "Organization",

           "@name": "Bank Name",

           "logo": "https://www.bank.com/images/app-fcb-logo.jpg"

}]

    

 

This seems wrong. I'm not sure what in the script to add. Thanks

Shellie Z
Phillip_Wild
Level 10 - Community Advisor

Re: Has anyone been successful in adding Gmail annotation to a Marketo email template?

The above solutions will work, but in the past I used the microdata format instead to get around this:

 

https://developers.google.com/gmail/markup/reference/formats/microdata

 

There might be drawbacks to this compared to the script option, but I haven't found them yet.

lillyfalcon
Level 3

Re: Has anyone been successful in adding Gmail annotation to a Marketo email template?

Thanks @Phillip_Wild ! Would you mind elaborating on how I could implement this solution? My knowledge of HTML is quite limited.

Lilly Falcon
SanfordWhiteman
Level 10 - Community Moderator

Re: Has anyone been successful in adding Gmail annotation to a Marketo email template?

I would not use Microdata, which is outdated. (Google recommends JSON-LD over the alternatives). Continue using JSON-LD.
Phillip_Wild
Level 10 - Community Advisor

Re: Has anyone been successful in adding Gmail annotation to a Marketo email template?

Ah - will it not be supported in the future @SanfordWhiteman ?

 

I didn't realise you could pop the JSON-LD in the head like that to get around Marketo's removal of it. Is there better support for JSON-LD than microdata once the email gets to an ISP like Gmail?

SanfordWhiteman
Level 10 - Community Moderator

Re: Has anyone been successful in adding Gmail annotation to a Marketo email template?

Right now I think both are equally supported bc it's easier to leave the parser in place. But in the future there'd be no reason to support microdata if you were building out a service that didn't formerly support it.