We have the follow module installed in our Miva Merchant 5 store:
Code: EMS-GOOGLEANALYTICS
We have the module installed and it is now collecting data but there is some descrepancy.
1. The transaction discrepancy is due to transactions registering multiple times for a single order id. For most of our order ids (15 out of 17), a transaction registered twice. Two of these are $0 transactions. This issue is caused by duplicate code on the receipt page. I ran a test transaction and saw the following rendered code:
<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">
var pageTracker = _gat._getTracker("UA-1877909-1");
pageTracker._initData();
pageTracker._trackPageview();
</script> <script src="https://ssl.google-analytics.com/urchin.js" type="text/javascript">
</script>
<script type="text/javascript">
_uacct = "UA-1877909-1";
urchinTracker("/EST02/INVC.html");
</script>
<form style="display:none;" name="utmform">
<textarea id="utmtrans">
UTM:T|6262||57.68||17.68|raleigh|NC|US
UTM:I|6262|AMB-700-401|Black Cadmium Plating Per Pair||40.00|1
</textarea>
</form> <script type="text/javascript">
__utmSetTrans();
</script>
<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">
var pageTracker = _gat._getTracker("UA-1877909-1");
pageTracker._initData();
pageTracker._trackPageview();
pageTracker._addTrans("6262","Eurosport Tuning","57.68","0","17.68","raleigh","NC","US");
pageTracker._addItem( "6262","AMB-700-401","Black Cadmium Plating Per Pair","","40.00","1" );pageTracker._addItem( "6262","AMB-700-401","Black Cadmium Plating Per Pair","","40.00","1" ); pageTracker._trackTrans(); </script>
As you can see, we are registering a transaction using both the urchin.js version of the ecommerce tracking code and the ga.js version of the ecommerce transaction code, resulting in duplicate transactions. We need to remove the urchin.js version but do not know how?
Code: EMS-GOOGLEANALYTICS
We have the module installed and it is now collecting data but there is some descrepancy.
1. The transaction discrepancy is due to transactions registering multiple times for a single order id. For most of our order ids (15 out of 17), a transaction registered twice. Two of these are $0 transactions. This issue is caused by duplicate code on the receipt page. I ran a test transaction and saw the following rendered code:
<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">
var pageTracker = _gat._getTracker("UA-1877909-1");
pageTracker._initData();
pageTracker._trackPageview();
</script> <script src="https://ssl.google-analytics.com/urchin.js" type="text/javascript">
</script>
<script type="text/javascript">
_uacct = "UA-1877909-1";
urchinTracker("/EST02/INVC.html");
</script>
<form style="display:none;" name="utmform">
<textarea id="utmtrans">
UTM:T|6262||57.68||17.68|raleigh|NC|US
UTM:I|6262|AMB-700-401|Black Cadmium Plating Per Pair||40.00|1
</textarea>
</form> <script type="text/javascript">
__utmSetTrans();
</script>
<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">
var pageTracker = _gat._getTracker("UA-1877909-1");
pageTracker._initData();
pageTracker._trackPageview();
pageTracker._addTrans("6262","Eurosport Tuning","57.68","0","17.68","raleigh","NC","US");
pageTracker._addItem( "6262","AMB-700-401","Black Cadmium Plating Per Pair","","40.00","1" );pageTracker._addItem( "6262","AMB-700-401","Black Cadmium Plating Per Pair","","40.00","1" ); pageTracker._trackTrans(); </script>
As you can see, we are registering a transaction using both the urchin.js version of the ecommerce tracking code and the ga.js version of the ecommerce transaction code, resulting in duplicate transactions. We need to remove the urchin.js version but do not know how?
Comment