Recipe: GA4 Ecommerce with ggLowCodeGTMKit
GA4 Ecommerce Implementation Guide
Section titled “GA4 Ecommerce Implementation ”Implement a complete GA4 ecommerce tracking pipeline — from data layer push to GA4 event — using ggLowCodeGTMKit variables. Zero custom JavaScript.
What You’ll Build
Section titled “What You’ll Build”A fully compliant GA4 purchase event tracking chain that:
- Parses the
ecommerce.purchasedata layer push - Extracts
transaction_id,value,currency, anditems[] - Sends a properly structured GA4 purchase event
Prerequisites
Section titled “Prerequisites”- ggLowCodeGTMKit container imported into your GTM workspace
- A data layer push with GA4 ecommerce format
Implementation
Section titled “Implementation”-
Configure the Purchase Parser
Create a variable using the
Parse Purchase Eventtemplate:- src:
{{DataLayer - ecommerce}} - Mode: Direct
- src:
-
Extract Transaction Values
The parser returns the full purchase object. GA4 expects individual parameters:
transaction_id→ Stringvalue→ Numbercurrency→ String (ISO 4217)items→ Array of item objects
-
Create the GA4 Event Tag
Configure a GA4 Event tag:
- Event Name:
purchase - Parameters: Map each value from Step 2
- Event Name:
-
Set the Trigger
Create a Custom Event trigger:
- Event Name:
purchase(matching your data layer push event)
- Event Name:
-
Test in Preview Mode
Open GTM Preview, trigger a test purchase, and verify:
- ✅ The variable returns the correct purchase object
- ✅ All parameters are populated
- ✅ The GA4 event fires with the correct schema