สร้างอีเวนต์
ติดตามการมีปฏิสัมพันธ์ของลูกค้า การซื้อ และกิจกรรมในโปรแกรมสะสมแต้ม เพื่อขับเคลื่อนการมีส่วนร่วมและรางวัลที่ปรับให้เฉพาะบุคคล
เริ่มต้นอย่างรวดเร็ว
การติดตามอีเวนต์พื้นฐาน
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
อีเวนต์ตะกร้าสินค้า
{ "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 | รหัสลูกค้าภายในระบบ |
loyalty_id | String | รหัสโปรแกรมสะสมแต้ม |
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
- ตั้งชื่ออีเวนต์ให้สอดคล้องกัน: ใช้หลักการตั้งชื่อที่เป็นมาตรฐาน
- ใส่พร็อพเพอร์ตี้ให้ครบถ้วน: ใส่ข้อมูลที่เกี่ยวกับโปรแกรมสะสมแต้มในทุกอีเวนต์
- ติดตามแบบเรียลไทม์: ส่งอีเวนต์ทันทีที่เกิดขึ้น
- เส้นทางของลูกค้า: ติดตามเส้นทางการซื้อและการมีส่วนร่วมให้ครบทั้งกระบวนการ
- ข้อมูลสำหรับแบ่งกลุ่ม: ใส่แอตทริบิวต์ที่ช่วยในการกำหนดกลุ่มเป้าหมาย
ขั้นตอนถัดไป
- ตั้งค่าระบบอัตโนมัติที่ทำงานจากอีเวนต์
- ติดตามการมีส่วนร่วมทางอีเมล
- ตั้งค่าเวิร์กโฟลว์โปรแกรมสะสมแต้ม
- ดูรายงานวิเคราะห์อีเวนต์