DataLayer Generator
The GA4 e-commerce dataLayer format, generated from a form. Paste the snippet where the event happens and every GTM tag that reads the standard schema just works.
Snippet
window.dataLayer = window.dataLayer || [];
// Clear the previous ecommerce object so events never merge.
dataLayer.push({ ecommerce: null });
dataLayer.push({
event: "purchase",
ecommerce: {
"currency": "BDT",
"value": 1500,
"transaction_id": "ORDER-1024",
"items": [
{
"item_id": "SKU-123",
"item_name": "Cotton Tee",
"price": 1500,
"quantity": 1
}
]
}
});Or skip the dataLayer entirely
The PixelFox tag auto-captures clicks, carts and checkouts without dataLayer pushes, and its dashboard maps them to Meta, TikTok and GA4 conversions visually.
Try zero-code tracking