インタラクティブメールテンプレート
サイコロ報酬ピッカー
1回のアクションを送信すると、サイコロの結果と対応する特典を返します。
サイコロのテンプレートは、毎日のストリークメールや短期プロモーションに便利です。
受信トレイのプレビュー
メール本文の静的なHTML表示です。ライブのAMP版をテスト用の受信トレイに送る前に、レイアウトの確認にご利用ください。
Gmail · メイン
Mailneo demo <hello@mailneo.co>
10:42(2分前)
サイコロ報酬ピッカー
自分宛て · インタラクティブメール
コードスニペット
<!doctype html>
<html amp4email>
<head>
<meta charset="utf-8" />
<script async src="https://cdn.ampproject.org/v0.js"></script>
<script async custom-element="amp-form" src="https://cdn.ampproject.org/v0/amp-form-0.1.js"></script>
<script async custom-template="amp-mustache" src="https://cdn.ampproject.org/v0/amp-mustache-0.2.js"></script>
<style amp4email-boilerplate>body{visibility:hidden}</style>
<style amp-custom>
body { margin: 0; padding: 16px; font-family: Arial, Helvetica, sans-serif; background: #fff7ed; color: #1f2937; }
.card { max-width: 560px; margin: 0 auto; padding: 16px; border: 1px solid #fed7aa; border-radius: 12px; background: #ffffff; }
h1 { margin: 0 0 8px; font-size: 24px; line-height: 30px; }
.muted { color: #6b7280; font-size: 13px; line-height: 18px; }
.btn { display: inline-block; margin-top: 10px; padding: 10px 14px; border: 0; border-radius: 8px; background: #f97316; color: #ffffff; text-decoration: none; font-weight: 700; cursor: pointer; }
.pill { display: inline-block; margin-right: 8px; margin-bottom: 8px; padding: 4px 9px; border-radius: 999px; border: 1px solid #fdba74; background: #fff7ed; font-size: 12px; }
.item { padding: 10px; border: 1px solid #fed7aa; border-radius: 10px; margin-top: 8px; }
</style>
<title>Dice-roll reward picker</title>
</head>
<body>
<section class="card">
<h1>Roll the dice for a surprise</h1>
<p class="muted">Your roll decides the perk. One roll per account.</p>
<form method="post" action-xhr="https://amp.mailneo.co/demo/dice-roll" target="_top">
<input type="hidden" name="campaign" value="daily-dice" />
<input type="submit" value="Roll the dice" class="btn" />
<div submit-success>
<template type="amp-mustache">
<p><strong>You rolled {{roll}}</strong></p>
<p class="muted">Reward: {{reward}}</p>
</template>
</div>
<div submit-error>
<template type="amp-mustache">
<p class="muted">We could not complete your roll. Try again in a minute.</p>
</template>
</div>
</form>
</section>
</body>
</html>使用しているAMPコンポーネント
amp-form
活用例
毎日のストリークキャンペーン
1日1回のサイコロで、繰り返し開封してもらいやすくなります。
業種: ゲーム
休眠顧客の呼び戻しドリップ
サイコロを振るたびに、新しい割引上限を組み合わせます。
注意点
APIのレイテンシ
受信トレイ内でフォーム送信がタイムアウトしないよう、応答時間を短く保ってください。
不正対策
転送されたメールで特典が重複して受け取られないよう、報酬をアカウントIDに紐付けてください。
コンバージョン向上データ
このテンプレートには、まだコンバージョンのベンチマークが紐づけられていません。