ich habe einen Online-Shop, in dem ich den Ecommerc Tracking Code auf der Bestellbestätigungsseite eingebunden habe. GA zählt allerdings nicht jede Transaktion. Heute habe ich z.B. 8 Transaktionen in meinem Shop . Angezeigt wird in GA allerdings nur eine.
Ich weiß jetzt nicht, wo ich den Fehler suchen kann. Mein GA Code einer Testbestellung sieht so aus:
Code: Alles auswählen
<script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol ) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
</script>
<script type="text/javascript">
try{
var pageTracker = _gat._getTracker("UA-xxx-1");
pageTracker._trackPageview();
pageTracker._addTrans(
"20641", // order ID - required
"Mein Shop", // affiliation or store name
"18.80", // total - required
"2.06", // tax
"5.9", // shipping
"", // city
"", // state or province
"" // 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
pageTracker._addItem(
"20641", // order ID - necessary to associate item with transaction
"73380", // SKU/code - required
"Schuh", // product name
"Schnäppchen", // category or variation
"12.90", // unit price - required
"1" // quantity - required
);
pageTracker._trackTrans(); //submits transaction to the Analytics servers
} catch(err) {}
</script></body></html>