イベントの作成
顧客の行動、購入、ロイヤルティプログラムの活動を計測し、パーソナライズされたエンゲージメントと特典につなげます。
クイックスタート
基本的なイベント計測
POST https://api.brevo.com/v3/eventsContent-Type: application/jsonapi-key: YOUR_API_KEY
{ "event": "Purchase Completed", "properties": { "order_id": "ORD-2024-001", "amount": 149.99, "currency": "USD", "products": ["Product A", "Product B"], "points_earned": 150, "loyalty_tier": "Gold" }}レスポンス
{ "success": true, "eventId": "evt_abc123"}ロイヤルティプログラムのイベント
購入イベント
購入を計測してポイントを付与し、ロイヤルティのステータスを更新します。
{ "event": "Purchase Completed", "properties": { "order_id": "ORD-2024-001", "order_total": 299.99, "currency": "USD", "payment_method": "Credit Card", "products": [ { "id": "PROD-001", "name": "Premium Widget", "category": "Electronics", "price": 149.99, "quantity": 2 } ], "points_earned": 300, "bonus_points": 50, "points_multiplier": 1.2, "loyalty_tier_before": "Silver", "loyalty_tier_after": "Gold", "tier_upgraded": true, "shipping_cost": 9.99, "discount_applied": 29.99, "coupon_code": "SAVE10" }, "eventdate": "2024-01-25T14:30:00Z"}ポイントの交換
顧客がロイヤルティポイントを交換したタイミングを計測します。
{ "event": "Points Redeemed", "properties": { "points_redeemed": 1000, "reward_type": "Discount", "reward_value": 50.00, "reward_description": "$50 Off Next Purchase", "coupon_generated": "LOYALTY50", "expiry_date": "2024-03-25", "remaining_points": 750, "redemption_source": "Mobile App" }}アカウントの活動
アカウントに関連する活動を計測します。
{ "event": "Account Created", "properties": { "signup_source": "Website", "referral_code": "REF-12345", "welcome_bonus": 500, "initial_tier": "Bronze", "marketing_consent": true, "sms_consent": false, "preferred_categories": ["Fashion", "Electronics"] }}エンゲージメントイベント
パーソナライズのために顧客のエンゲージメントを計測します。
{ "event": "Email Opened", "properties": { "campaign_id": "CAMP-001", "campaign_name": "Weekly Offers", "subject_line": "Exclusive Deals Just for You!", "open_time": "2024-01-25T09:15:00Z", "device": "Mobile", "email_client": "Gmail", "location": "New York, NY" }}Tajo 向けの EC イベント
カートのイベント
{ "event": "Product Added to Cart", "properties": { "product_id": "PROD-123", "product_name": "Smart Watch", "category": "Electronics", "price": 299.99, "cart_total": 459.98, "cart_items_count": 2, "potential_points": 460 }}{ "event": "Cart Abandoned", "properties": { "cart_value": 459.98, "items_count": 2, "potential_points_lost": 460, "abandonment_stage": "Checkout", "time_in_cart": "25 minutes" }}閲覧のイベント
{ "event": "Product Viewed", "properties": { "product_id": "PROD-456", "product_name": "Wireless Headphones", "category": "Electronics", "price": 199.99, "view_duration": "45 seconds", "referrer": "Search Results", "loyalty_discount_shown": true }}ロイヤルティ固有のイベント
{ "event": "Tier Upgraded", "properties": { "previous_tier": "Silver", "new_tier": "Gold", "points_balance": 2500, "benefits_unlocked": ["Free Shipping", "Priority Support"], "next_tier": "Platinum", "points_to_next_tier": 1500 }}{ "event": "Reward Earned", "properties": { "reward_type": "Birthday Bonus", "points_awarded": 500, "trigger": "Birthday", "total_points": 3000, "tier_progress": 75 }}イベントプロパティのガイドライン
必須プロパティ
| プロパティ | 型 | 説明 |
|---|---|---|
email | String | 顧客のメールアドレス(必須) |
event | String | イベント名(必須) |
properties | Object | イベント固有のデータ |
ロイヤルティで推奨するプロパティ
| プロパティ | 型 | 説明 |
|---|---|---|
customer_id | String | 社内の顧客 ID |
loyalty_id | String | ロイヤルティプログラムの ID |
points_balance | Number | イベント後の現在のポイント残高 |
loyalty_tier | String | 現在のティア |
event_value | Number | イベントの金銭的価値 |
高度なイベント計測
カスタムイベントプロパティ
{ "event": "Product Review Submitted", "properties": { "product_id": "PROD-789", "rating": 5, "review_length": "detailed", "verified_purchase": true, "points_earned": 25, "review_bonus": true, "helpful_votes": 0 }}イベントの一括作成
{ "events": [ { "event": "Purchase Completed", "properties": { "order_id": "ORD-001", "amount": 99.99 } }, { "event": "Points Redeemed", "properties": { "points_used": 500, "reward": "Free Shipping" } } ]}エラー処理
{ "code": "invalid_event", "message": "Event name must be a non-empty string", "details": { "field": "event", "value": "" }}Tajo でのベストプラクティス
- 一貫したイベント名: 標準的な命名規則を使用します
- 充実したプロパティ: すべてのイベントにロイヤルティ関連のデータを含めます
- リアルタイム計測: イベントの発生直後に送信します
- カスタマージャーニー: 購入とエンゲージメントのファネル全体を計測します
- セグメント用データ: ターゲティングに役立つ属性を含めます
次のステップ
- イベントベースの自動化を設定する
- メールのエンゲージメントを計測する
- ロイヤルティのワークフローを設定する
- イベントの分析を表示する