คู่มือ 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_category
–item_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)
- ปรับปรุงเว็บให้เร็ว/คอนเวิร์ตสูง (Core Web Vitals)
- Webflow Design & Development (GA4/GTM พร้อมใช้)
- UX/UI สำหรับ PDP/Checkout
- บริการทั้งหมด
อ่านต่อ (บทความที่เกี่ยวข้อง)
- A/B Testing บน Webflow
- Ecommerce Replatforming Guide
- ย้าย WooCommerce ไป Shopify
- Personalization สำหรับอีคอมเมิร์ซ
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 เพื่อการตัดสินใจที่เร็วและแม่น
- Google Developers — Measure ecommerce (GA4): developers.google.com :contentReference[oaicite:18]{index=18}
- Google Analytics Help — Recommended events: support.google.com :contentReference[oaicite:19]{index=19}
- Google Developers — Recommended events reference (item parameters): developers.google.com :contentReference[oaicite:20]{index=20}
- Google Analytics Help — Ecommerce events & purchases report: support.google.com, support.google.com :contentReference[oaicite:21]{index=21}
- Google Analytics Help — Event parameters (GA4): support.google.com :contentReference[oaicite:22]{index=22}
- Consent Mode v2 — Google Ads Help & Developers: support.google.com, developers.google.com :contentReference[oaicite:23]{index=23}
- GA4 BigQuery Export schema: support.google.com :contentReference[oaicite:24]{index=24}
- Web.dev — Core Web Vitals: web.dev
- W3C — WCAG 2.2: w3.org
ก่อนปรับ UX คนเข้าเว็บแล้วออกเลยค่ะ แต่พอรีดีไซน์ใหม่ กลายเป็นจุดที่ปิดการขายได้ดีที่สุดแทน!

หลังรีแบรนด์กับ Vision X Brain ยอดขายพุ่ง x3 ภายใน 2 เดือน!

เปลี่ยนเว็บกับ Vision X Brain แค่ไม่กี่วัน ลูกค้าใหม่เริ่มเข้าใจธุรกิจเราทันที

หลังรีดีไซน์กับ Vision X Brain ลูกค้าระดับองค์กรเริ่มเข้ามาจองงานผ่านเว็บไซต์เอง — ไม่ต้องพึ่งคอนเนคชั่นเหมือนก่อน

หลังจากเปลี่ยนเว็บไซต์กับ Vision X Brain ผู้ใช้งานกล้ากดทดลองระบบตั้งแต่หน้าแรก — ไม่ต้องตาม โทร หรืออธิบายซ้ำอีก

Recent Blog

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

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

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