Hallo
irgendwie werden bei Google Analaytics meien Shop Verkäufe nicht richtig gespeichert/getrackt.
was muss ich genau machen das es funktioniert?
Variante 1:
diesen code von Google einbauen?
aber in welchem php file?
und woher kriege ich die transaction ID ?
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-XXXXX-X']);
_gaq.push(['_trackPageview']);
_gaq.push(['_addTrans',
'1234', // transaction ID - required
'Acme Clothing', // affiliation or store name
'11.99', // total - required
'1.29', // tax
'5', // shipping
'San Jose', // city
'California', // state or province
'USA' // country
]);
// add item might be called for every item in the shopping cart
// where your ecommerce engine loops through each item in the cart and
// prints out _addItem for each
_gaq.push(['_addItem',
'1234', // transaction ID - required
'DD44', // SKU/code - required
'T-Shirt', // product name
'Green Medium', // category or variation
'11.99', // unit price - required
'1' // quantity - required
]);
_gaq.push(['_trackTrans']); //submits transaction to the Analytics servers
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
</script>
oder dann Variante 2
dieses addon hab ich installiert:
https://www.webdesigner-profi.de/joomla-webdesign/shop/addons/google-conversion-tracking.html?lang=de
auch hier
woher kriege ich folgende daten:?
Variable: google_conversion_id:
Variable: google_conversion_language:
Variable: google_conversion_format:
Variable: google_conversion_label:
Variable: google_conversion_value:
Variable: google_remarketing_only:
Gruss Guido