oy
oy copied to clipboard
Support for Go-To-Actions?
I am trying to configure Go-To-Actions in my emails but not having much luck. Does this library support that capability?
I have also tried leveraging React Helmet inside my emails but no luck. The emails send but no actions appear to the end user.
<Email>
...
<Helmet>
<script type="application/ld+json">
{`
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://watch-movies.com/watch?movieId=abc123",
"name": "Watch movie"
},
"description": "Watch the 'Avengers' movie online"
}
`}
</script>
</Helmet>
...
</Email>
As far as I've gathered, View / Track actions are basically HTML5 microdata, hence markup attributes. The example you supply however contains a script tag, so I would start by verifying that the HTML output you receive contains these microdata tags/attributes. Can you explain how is the script tag supposed to work within email for your case?
See https://developers.google.com/gmail/markup/reference/formats/json-ld @Rendez