Analytics
Add GA4 eCommerce tags - Pixfizz eCommerce CMS
Google Tag
<!-- Google tag (gtag.js) -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-ABCDE12345"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'G-ABCDE12345');
</script>View Item event
<script>
gtag("event", "view_item", {
currency: "{{ website.currency_code }}",
value: {{ product.price }},
items: [
{
item_id: "{{ product.code }}",
item_name: "{{ product.name }}",
index: 0,
item_brand: "{{ website.title }}",
item_category: "{{ product.category }}",
price: {{ product.price }},
quantity: 1
}
]
});
</script>Add to cart event
Begin Checkout event
Purchase event
Last updated