How to Configure GA4 AddToCart Event on Shopify using GTM and dataLayer

Опубликовано: 07 Январь 2025
на канале: Tracking Academy
2,472
47

Get 95% accurate tracking for your ecommerce store in 7 days:
https://trackingacademy.com/contact/?...

------------------------------------------------------------------------------------------------------------------------------------------------

Setting up the "Add to Cart" event on your Shopify store using Google Tag Manager & Google Analytics 4 can seem daunting, but we've got you covered! Dive into this tutorial and learn step by step.

Code Snippet: https://trackingacademy.com/blog/shop...

------------------------------------------------------------------------------------------------------------------------------------------------

Chapters:
0:00 Introduction
0:10 Prerequisites & Setup
0:32 Configuring Web Configuration Tag
0:43 Setting up Add to Cart on Button Click
0:47 Using Data Layer for Enhanced E-Commerce Data
1:01 Google Tag Manager Container Setup
1:34 Measurement ID Setup in GTM
2:04 Creating Google Analytics 4 Configuration Tag
2:53 Testing & Verification
3:44 Configuring Button Click Events
5:09 Creating Specific Add to Cart Trigger
6:00 Setting Up GTM Tag for Add to Cart Event
6:44 Verifying Add to Cart Event in Real-Time
08:29 - Implementing Custom Code Snippets
8:29 📌 Different Types of Core Snippets
8:47 🛠️ Creating Snippets
9:00 📝 Copying Code from Description
9:38 🎯 Triggers & Events
10:15 🖥️ Walking Through the Code
10:59 📂 Saving & Checking Product Page Events
11:56 🧪 Editing in Google Tag Manager
13:05 ✏️ Creating New Variables
15:26 🛒 Testing Add to Cart Functionality
15:30 Add to cart event triggered 🚀
15:37 Items array in the G4 event 📋
15:45 Checking standard events 🧐
16:00 Verifying analytics details 📈
16:15 Viewing the items array details 📌
16:25 Debug view insights 🔍
16:40 Tracking using event snippet code 📜
16:46 Publishing 'Add to Cart' event with G4 🎉
16:50 Upcoming: 'View Item' event guide 🎥
16:57 Teaser: 'Begin Checkout' event video 🛍️