Respektive mam to nejak takhle
V head
<script type="text/javascript">
dataLayer = [];
</script>
dataLayer = window.dataLayer || dataLayer || [];
dataLayer.push({
'event' : 'orderFormSubmitted',
'ecommerce': {
'purchase': {
'actionField': {
'id': 1203,
'revenue': "1500.00",
},
'products': [{
'name': "testovaci produkt",
'id': 88,
'price': "1500.00",
'category': "test \/ test",
'quantity': 1,
},
]
}
}
});
a za tim je google tag manager script
V google tag manageru mam Typ mereni: Transakce a naveseno na ten event: orderFormSubmitted. Je to na thank you page. Tag se normalne hitne (kdyz dam preview)