Dear Piwik PRO-Community,
Thanks to the great support of @pslonina since Oct. 22 we’ve already a working tag for E-Commerce-Tracking in Piwik PRO. It extracts the values from an existing DL and looks like follows:
<script>
var _paq = _paq || [];
(function () {
var ecObject = {{ ecommerce }}
var products = {{ ecommerce }}.items
products.forEach(function(product){
_paq.push(["addEcommerceItem", product.item_id, product.item_name, product.item_category, product.price, product.quantity]);
});
_paq.push(["trackEcommerceOrder", ecObject.transaction_id, parseFloat(ecObject.value),, parseFloat(ecObject.tax), parseFloat(ecObject.shipping),]);
})();
</script>
Now I’d like to implement Conversion Tracking for Google Ads. To send not only the conversion but also the conversion value to Google Ads I’ve set a variable for “Conversion value” in this tag.
Now I need a script to extract the "Conversion value“ into this variable.
I’ve already tried to follow the instructions of @kuba (see How to track revenue for Google Ads - #5 by myvetshop), but unfortunately I’m not that familiar with JS.
Can you be of assistance? That’d be great!
Best regards
Jürgen