How to configure Gmail Annotation in Email Script with Velocity Token. Looking for examples. | Community
Skip to main content
shelliezollin
Level 2
December 22, 2022
Solved

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

  • December 22, 2022
  • 1 reply
  • 5726 views
Hi!

I'm trying to add Gmail Annotation into a token via email script and haven't had much luck finding any examples.


I've added this script and token to the <head> of my email template, but I don't know what to add to the Email Script Token.

Sanford W had mentioned a Velocity Token, which I have researched, but haven't found any documentation on.
https://nation.marketo.com/t5/product-discussions/has-anyone-been-successful-in-adding-gmail-annotation-to-a/td-p/315669 

Can someone please assist?


Script added to the email template: 

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

<html>

  <head>

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

   {{my.Gmail Annotation}}

    </script>

  </head>


Gmail Annotation script added to Email Script token which needs to be converted to Velocity Token: 

 

[{

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

          "@type": "Organization",

           "@name": "Bank Name",

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

}]

    

 

I'm looking for examples. If there's another way to add, perhaps in a snippet?
Any help is greatly appreciated. 

Marketo Email Scripting - https://developers.marketo.com/email-scripting/
More on Gmail Annotation: https://www.naomiwest.ca/journal/gmail-annotations-a-breakdown


Best answer by Darshil_Shah1

AFAICT, all the annotation content w/o the <script type="application/ld+json"> </script> tag should go in the email script token, which then is referenced in the email template within the script tag as per below - 

 

<head> <script type="application/ld+json"> {{my.Annotation Content}} //email script token with Gmail Annotation </script> </head>

 

You can reference this google doc on creating annotations. There are other annotations builder platforms as well, where you can add the content to a visual format and the configurator then generates the annotation code.

 

1 reply

Darshil_Shah1
Community Advisor and Adobe Champion
Darshil_Shah1Community Advisor and Adobe ChampionAccepted solution
Community Advisor and Adobe Champion
December 22, 2022

AFAICT, all the annotation content w/o the <script type="application/ld+json"> </script> tag should go in the email script token, which then is referenced in the email template within the script tag as per below - 

 

<head> <script type="application/ld+json"> {{my.Annotation Content}} //email script token with Gmail Annotation </script> </head>

 

You can reference this google doc on creating annotations. There are other annotations builder platforms as well, where you can add the content to a visual format and the configurator then generates the annotation code.

 

shelliezollin
Level 2
December 22, 2022

Hi Darshil!

Your solution worked! 

 

Steps:

 

  • Add token {{my.Gmail Annotation}} before </head> in the email template.
  • Create {{my.Gmail Annotation} Email Script token in program and add all Gmail Annotation script
  • Test in Gmail


Shellie Z
Darshil_Shah1
Community Advisor and Adobe Champion
Community Advisor and Adobe Champion
December 23, 2022

Great! Glad to be of help.