---
title: "สร้างอีเวนต์ | Tajo"
description: "ติดตามอีเวนต์ของลูกค้าเพื่อสร้างการมีส่วนร่วมกับโปรแกรมสะสมแต้มและการปรับเนื้อหาให้เฉพาะบุคคล"
url: https://tajo.io/th/docs/events-engagement/create-event/
markdown: https://tajo.io/th/docs/events-engagement/create-event.md
lang: th-TH
author: "Set Noa"
author_url: https://tajo.io/th/set-noa/
robots: noindex
---

ขอสิทธิ์ใช้งานล่วงหน้า

กรอกชื่อและที่อยู่อีเมลที่ทำงานของคุณ เราจะส่งลิงก์เพื่อยืนยันคำขอเข้าใช้งาน Tajo ทางอีเมล

# สร้างอีเวนต์

[Set Noa](https://tajo.io/th/set-noa/)

ติดตามการมีปฏิสัมพันธ์ของลูกค้า การซื้อ และกิจกรรมในโปรแกรมสะสมแต้ม เพื่อขับเคลื่อนการมีส่วนร่วมและรางวัลที่ปรับให้เฉพาะบุคคล

## เริ่มต้นอย่างรวดเร็ว

### การติดตามอีเวนต์พื้นฐาน

```http
POST https://api.brevo.com/v3/events
Content-Type: application/json
api-key: YOUR_API_KEY

{
  "email": "customer@example.com",
  "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"
  }
}
```

### การตอบกลับ

```json
{
  "success": true,
  "eventId": "evt_abc123"
}
```

## อีเวนต์ของโปรแกรมสะสมแต้ม

### อีเวนต์การซื้อ

ติดตามการซื้อเพื่อมอบแต้มและอัปเดตสถานะสมาชิก

```json
{
  "email": "customer@example.com",
  "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"
}
```

### การแลกแต้ม

ติดตามเมื่อลูกค้าแลกแต้มสะสม

```json
{
  "email": "customer@example.com",
  "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"
  }
}
```

### กิจกรรมเกี่ยวกับบัญชี

ติดตามกิจกรรมที่เกี่ยวข้องกับบัญชี

```json
{
  "email": "customer@example.com",
  "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"]
  }
}
```

### อีเวนต์การมีส่วนร่วม

ติดตามการมีส่วนร่วมของลูกค้าเพื่อการปรับเนื้อหาให้เฉพาะบุคคล

```json
{
  "email": "customer@example.com",
  "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

### อีเวนต์ตะกร้าสินค้า

```json
{
  "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
  }
}
```

```json
{
  "event": "Cart Abandoned",
  "properties": {
    "cart_value": 459.98,
    "items_count": 2,
    "potential_points_lost": 460,
    "abandonment_stage": "Checkout",
    "time_in_cart": "25 minutes"
  }
}
```

### อีเวนต์การเลือกชมสินค้า

```json
{
  "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
  }
}
```

### อีเวนต์เฉพาะของโปรแกรมสะสมแต้ม

```json
{
  "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
  }
}
```

```json
{
  "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 | มูลค่าที่เป็นตัวเงินของอีเวนต์ |

## การติดตามอีเวนต์ขั้นสูง

### พร็อพเพอร์ตี้อีเวนต์แบบกำหนดเอง

```json
{
  "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
  }
}
```

### การสร้างอีเวนต์แบบกลุ่ม

```json
{
  "events": [
    {
      "email": "customer1@example.com",
      "event": "Purchase Completed",
      "properties": { "order_id": "ORD-001", "amount": 99.99 }
    },
    {
      "email": "customer2@example.com",
      "event": "Points Redeemed",
      "properties": { "points_used": 500, "reward": "Free Shipping" }
    }
  ]
}
```

## การจัดการข้อผิดพลาด

```json
{
  "code": "invalid_event",
  "message": "Event name must be a non-empty string",
  "details": {
    "field": "event",
    "value": ""
  }
}
```

## แนวทางปฏิบัติที่ดีสำหรับ Tajo

1. **ตั้งชื่ออีเวนต์ให้สอดคล้องกัน**: ใช้หลักการตั้งชื่อที่เป็นมาตรฐาน
2. **ใส่พร็อพเพอร์ตี้ให้ครบถ้วน**: ใส่ข้อมูลที่เกี่ยวกับโปรแกรมสะสมแต้มในทุกอีเวนต์
3. **ติดตามแบบเรียลไทม์**: ส่งอีเวนต์ทันทีที่เกิดขึ้น
4. **เส้นทางของลูกค้า**: ติดตามเส้นทางการซื้อและการมีส่วนร่วมให้ครบทั้งกระบวนการ
5. **ข้อมูลสำหรับแบ่งกลุ่ม**: ใส่แอตทริบิวต์ที่ช่วยในการกำหนดกลุ่มเป้าหมาย

## ขั้นตอนถัดไป

- [ตั้งค่าระบบอัตโนมัติที่ทำงานจากอีเวนต์](https://tajo.io/th/docs/automation/)
- ติดตามการมีส่วนร่วมทางอีเมล
- ตั้งค่าเวิร์กโฟลว์โปรแกรมสะสมแต้ม
- ดูรายงานวิเคราะห์อีเวนต์
