🔥 แค่ 5 นาที เปลี่ยนมุมมองได้เลย

คู่มือ Google Analytics 4 สำหรับ E-commerce: ดู Report สำคัญอะไรบ้าง

ยาวไป อยากเลือกอ่าน?

ตั้ง GA4 อีคอมเมิร์ซให้แม่น: ใช้อีเวนต์แนะนำ (view_item, add_to_cart, begin_checkout, purchase), ส่ง items ที่มี item_id หรือ item_name, เปิด Consent Mode v2, ยิงผ่าน Google Tag/Tag Manager, ตรวจ DebugView แล้วอ่านรายงาน Monetization/Items และส่งออก BigQuery เพื่อวิเคราะห์ลึก.

GA4 Guide for Ecommerce: ตั้ง “เหตุการณ์–พารามิเตอร์–คอนเซนต์” ให้ถูกตั้งแต่วันแรก

สำหรับทีมการตลาด/อีคอม/แอนะลิติกส์ โฟกัส 3 เรื่อง: (1) อีเวนต์ที่ Google แนะนำสำหรับอีคอมเมิร์ซ (2) โครง items[] ที่ต้องมี item_id หรือ item_name (3) Consent Mode v2 เพื่อยิงข้อมูลตามสิทธิยินยอม—ทั้งหมดรองรับรายงาน Monetization และ BigQuery Export ของ GA4 ได้พอดี :contentReference[oaicite:0]{index=0}

อีเวนต์อีคอมเมิร์ซที่ควรมี + จุดยิง + พารามิเตอร์สำคัญ

Event จุดที่ควรยิง พารามิเตอร์หลัก (ตัวอย่าง) อ้างอิง
view_item PDP (หน้า Product) items:[{item_id:'SKU_123', item_name:'Tee', price:19.9}] Measure ecommerce :contentReference[oaicite:1]{index=1}
add_to_cart กด “หยิบใส่ตะกร้า” currency:'THB', value:19.9, items:[...] Ecommerce events :contentReference[oaicite:2]{index=2}
begin_checkout เริ่มเช็กเอาต์ coupon:'SUMMER', items:[...] Recommended events :contentReference[oaicite:3]{index=3}
purchase หน้า Thank you / Callback สำเร็จ transaction_id:'123', value:1999, tax:139, shipping:40, currency:'THB', items:[...] Set up purchase :contentReference[oaicite:4]{index=4}

รายการพารามิเตอร์ items: กำหนดได้หลายตัว เช่น item_id, item_name, item_brand, item_categoryitem_category5, item_variant, price, quantity โดยอย่างน้อยต้องมี item_id หรือ item_name. :contentReference[oaicite:5]{index=5}

ตัวอย่างโค้ด (Google tag / gtag.js)

<!-- PURCHASE -->
<script>
gtag('event', 'purchase', {
  transaction_id: 'T12345',
  value: 1999.00,
  tax: 139.00,
  shipping: 40.00,
  currency: 'THB',
  items: [
    { item_id: 'SKU_123', item_name: 'Stan Tee', price: 999.00, quantity: 1 },
    { item_id: 'SKU_456', item_name: 'Blue Cap', price: 1000.00, quantity: 1 }
  ]
});
</script>

โค้ดด้านบนสอดคล้องกับสเปคอีคอมเมิร์ซของ GA4 ที่ต้องส่งอาร์เรย์ items พร้อม item-level parameters. :contentReference[oaicite:6]{index=6}

Consent Mode v2 (ต้องมีในปี 2025)

สิ่งที่ทำเหตุผลอ้างอิง
ตั้งค่า consent ค่าเริ่มต้นแบบ “denied” ยิงแท็กแบบเคารพสิทธิ ก่อนผู้ใช้ให้ยินยอม Developers: Consent mode v2 :contentReference[oaicite:7]{index=7}
อัปเดตเมื่อผู้ใช้ให้ยินยอม ปรับพฤติกรรมแท็ก/โมเดลคอนเวอร์ชัน About consent mode :contentReference[oaicite:8]{index=8}
ใช้ GTM Consent features ทริกเกอร์เฉพาะเมื่อได้ consent GTM consent support :contentReference[oaicite:9]{index=9}
<!-- ตัวอย่าง: ตั้งค่า Consent Mode v2 -->
<script>
gtag('consent', 'default', {
  'ad_storage': 'denied',
  'analytics_storage': 'denied',
  'ad_user_data': 'denied',
  'ad_personalization': 'denied'
});
// เมื่อผู้ใช้ยินยอม
function onConsentGranted(){
  gtag('consent','update',{
    'ad_storage':'granted',
    'analytics_storage':'granted',
    'ad_user_data':'granted',
    'ad_personalization':'granted'
  });
}
</script>

อ่านรายงานอะไรใน GA4?

รายงานดูอะไรพึ่งพาพารามิเตอร์อ้างอิง
Monetization > Ecommerce purchases ยอดขาย/สินค้า/หมวดหมู่/ตัวโปรโมชัน items[].item_id / item_name / item_category* Ecommerce purchases report :contentReference[oaicite:10]{index=10}
Realtime/DebugView ตรวจเหตุการณ์ระหว่างทดสอบ เหตุการณ์แนะนำ (recommended events) Recommended events :contentReference[oaicite:11]{index=11}
BigQuery Export ยิง SQL วิเคราะห์ตะกร้าซื้อ/เส้นทาง สคีมา GA4 export (items nested) GA4 BigQuery schema :contentReference[oaicite:12]{index=12}

แผนทดสอบก่อนปล่อยจริง (Smoke Test)

  • ทดสอบทุกเส้นทาง: PDP → Add to cart → Checkout → Thank you พร้อม DebugView
  • ตรวจค่าบังคับ: currency, value, transaction_id, และ items[] มี item_id/item_name. :contentReference[oaicite:13]{index=13}
  • ทดสอบ consent: ปฏิเสธ/ยินยอม แล้วดูพฤติกรรมแท็กเปลี่ยนถูกต้อง. :contentReference[oaicite:14]{index=14}

คุณภาพหน้า/การเข้าถึง (มีผลกับคอนเวิร์ชัน)

  • Core Web Vitals: LCP/INP/CLS ผ่านเพื่อไม่ให้เช็กเอาต์สะดุด. web.dev
  • WCAG 2.2: ฟอร์ม/ปุ่ม/โฟกัสใช้งานได้ด้วยคีย์บอร์ด. W3C

บริการที่เกี่ยวข้อง (Internal Links)

อ่านต่อ (บทความที่เกี่ยวข้อง)


FAQ

ต้องใส่ทั้ง item_id และ item_name ไหม?
ไม่จำเป็นต้องใส่ทั้งคู่ แต่ ต้องมีอย่างน้อยหนึ่ง (item_id หรือ item_name) ในแต่ละ items[] เพื่อให้รายงาน Monetization/Items ทำงานถูกต้อง. :contentReference[oaicite:15]{index=15}

ควรยิง purchase ที่ปุ่ม “ชำระเงิน” หรือหน้า Thank you?
ติดที่หน้า “สำเร็จ/Thank you” หรือจุดยืนยันธุรกรรมสำเร็จ เพื่อเลี่ยงการนับซ้ำจากการรีเฟรชหน้าเช็กเอาต์. :contentReference[oaicite:16]{index=16}

จำเป็นต้องใช้ Consent Mode v2 ไหม?
แนะนำอย่างยิ่ง โดยเฉพาะทราฟฟิกใน EEA/UK เพื่อให้แท็กทำงานตามการยินยอมและรองรับโมเดลคอนเวอร์ชันของ Google. :contentReference[oaicite:17]{index=17}

อัปเดตล่าสุด: 12 Aug 2025


เกี่ยวกับผู้เขียน

Vision X Brain Team — ทีม Website/SEO/CRO & Webflow เราช่วยทีมอีคอมวาง Measurement Plan, ตั้ง GA4/GTM/Consent Mode v2 ให้เก็บข้อมูลถูกต้อง พร้อมแดชบอร์ด BigQuery/Looker Studio เพื่อการตัดสินใจที่เร็วและแม่น

แชร์

Recent Blog

Mobile-First Indexing คู่มือครบ: ตั้งค่าให้เว็บติดอันดับ (อัปเดต 2025)

คู่มือ Mobile-First Indexing สำหรับทีมการตลาด/เว็บ: อธิบายหลักการ Mobile-first ของ Google, เช็กลิสต์ความเท่าเทียมระหว่างเดสก์ท็อป–มือถือ (content/สคีมา/เมตา/สื่อ), ปัญหาพบบ่อย, วิธีทดสอบใน GSC และแผนแก้ไข 7 ขั้น พร้อมลิงก์มาตรฐานอ้างอิง

SEO สำหรับบริษัทเช่าเครื่องจักรก่อสร้าง: คู่มือ Local SEO 2025

คู่มือ SEO สำหรับธุรกิจเช่าเครื่องจักรก่อสร้าง (แบคโฮ เครน รถขุด ฯลฯ) เน้นโครงคอนเทนต์ตาม “บริการ × พื้นที่”, ปรับ Google Business Profile/รีวิว, ใส่สคีมาท้องถิ่น, เร่งความเร็วตาม Core Web Vitals และวัดผล GA4 พร้อมแผน 30 วันลงมือได้จริง

PWA สำหรับ eCommerce: เร็ว ติดตั้งได้ เพิ่มยอดขาย (อัปเดต 2025)

สรุปวิธีทำ eCommerce ให้ “เร็ว ติดตั้งได้ และคอนเวิร์ตสูง” ด้วย PWA: โครงสร้างเทคนิคที่จำเป็น (Manifest/Service Worker), กลยุทธ์แคชช็อป, Web Push/Payment Request, ตัวอย่างโค้ด + Workbox, ตารางเทียบผลกระทบต่อ KPI และแผนเปิดตัว 14 วัน