Я пытаюсь добавить GMail «Go -To Action» кнопку CTA в электронном письме со следующим кодом:
<div itemscope itemtype="http://schema.org/EmailMessage">
<meta itemprop="description" content="Activate Your Account" />
<div itemprop="potentialAction" itemscope itemtype="http://schema.org/ViewAction">
<link itemprop="target" href="https://path.to/activate" />
<meta itemprop="name" content="Activate Account" />
</div>
</div>
Я пробовал использовать оба target
(как указано выше) и url
itemprops, поскольку я вижу в другом месте, что может быть некоторая путаница между документами и реальностью, и даже попытался добавить их оба. Когда я нажимаю «Показать оригинал» в GMail, я вижу то, что показано ниже, но в папке «Входящие» не отображается ни одной кнопки.
----==_mimepart_abc123
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: 7bit
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
<html><body>
<div itemscope itemtype="http://schema.org/EmailMessage">
<meta itemprop="description" content="Activate Your Account">
<div itemprop="potentialAction" itemscope itemtype="http://schema.org/ViewAction">
<link itemprop="target" href="https://path.to/activate">
<meta itemprop="name" content="Activate Account">
</div>
</div>
target only
</body></html>
----==_mimepart_abc123