Replace "TAG_ID" in example below with your tag ID
<head>
<!-- Google tag (gtag.js) -->
<script async src="https://www.googletagmanager.com/gtag/js?id=TAG_ID"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'TAG_ID');
</script>
</head>
View Item Event (gtag.js)
Add the below code to all product pages where a single product is being viewed. Be aware that there is a custom field referenced, which may be different in your admin.
View Cart Event (gtag.js)
Add the below code to the cart page.
Add to Cart Event (gtag.js)
Add the below code to the account_saved_projects page within the for loop for projects. On the button to add the project to cart, you also need to add an id, like the example below.
Remove from Cart Event (gtag.js)
Add the below code to the cart page within the for loop for orderlines. On the button to remove the orderline, you need to add an id, like the example below.