1

如何在电子邮件模板上为 gmail 实现快速操作按钮?我的目标基本上只关注拥有 gmail 帐户的用户。我看到了有关 gmail 快速操作按钮的新闻,我想知道如何实现这些,以便 gmail 上的时事通讯/电子邮件出现快速操作按钮。这肯定会增加用户在电子邮件传递时的转化率。

4

1 回答 1

4

我在这里找到了解决方案:http: //googleappsdeveloper.blogspot.com.br/2013/05/introducing-actions-in-inbox-powered-by.html。似乎只需要在电子邮件模板中添加一个 JSON-LD 标记:

<script type="application/ld+json">
{
  "@context": "schema.org",
  "@type": "Movie",
  "name": "The Internship",
  ... information about the movie ...
  "action": {
    "@type": "ConfirmAction",
    "name": "Add to queue",
    "actionHandler": {
      "@type": "HttpActionHandler",
      "url": "https://my-movies.com/add?movieId=123",
      "method": "POST",
    }
  }
}
</script>
于 2013-05-20T18:11:24.203 回答