oy icon indicating copy to clipboard operation
oy copied to clipboard

Support for Go-To-Actions?

Open joncursi opened this issue 8 years ago • 2 comments

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>

joncursi avatar Jun 05 '17 17:06 joncursi

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?

Rendez avatar Jun 12 '17 15:06 Rendez

See https://developers.google.com/gmail/markup/reference/formats/json-ld @Rendez

albinekb avatar Jul 11 '18 21:07 albinekb