2013-12-20 64 views

回答

2

你可以找到如何在這裏使用該功能的信息:https://developers.google.com/gmail/actions/

Mailchimp已開始將這一功能爲認購自動確認電子郵件。你不需要做任何事情。

如果您想將動作按鈕添加到其他類型的電子郵件,您可以按照Google(上面的鏈接)中列出的步驟操作。您必須向Google發送標有結構化數據的示例電子郵件,然後register your sending account with them

註冊後,您可以使用Schema.org樣式的微數據標記和JSON將動作按鈕添加到您的電子郵件。


例如:(excerpt from Google)

去到行動很容易申報。一旦使用schema.org實體標記了您的內容 ,您可以爲它們添加「前往」操作。對於 例如,爲了使事件實體有一個RsvpAction去到鏈接,您 只需要填充事件的action屬性,如下面的 例如:

在你的電子郵件的補充一點:

<script type="application/ld+json"> 
    { 
     "@context": "http://schema.org", 
     "@type": "Event", 
     "name": "John's Birthday Party", 
       ... information about the event ... 
     "action": { 
      "@type": "RsvpAction", 
      "url": "http://events-organizer.com/rsvp?eventId=123", 
     } 
    } 
</script> 

這是您將添加到標記

<div itemscope itemtype="http://schema.org/Event"> 
    <meta itemprop="name" content="John's Birthday Party"/> 
     ... information about the event ... 
    <div itemprop="action" itemscope itemtype="http://schema.org/RsvpAction"> 
     <meta itemprop="url" content="https://events-organizer.com/rsvp?eventId=123"/> 
    </div> 
</div> 

內容示例

請注意,Gmail按鈕是not designed to be used in bulk marketing emails。這些按鈕的目的以及Google支持旨在僅在交易風格電子郵件中實施的架構。

+0

我試圖註冊發送帳戶,但電子郵件反彈通知即將到來。看來,鏈接不活躍 –

+0

哪個鏈接不工作? – davidcondrey

+0

「註冊您的發送帳戶。」從答案。 –