eCommerce Tracking drops out after Google Analytics Customisation

Buongiorno from 19 degrees C wetherby UK :slight_smile:

On this site http://www.philpotts.co.uk/ a subdomain contains the shop at http://shop.philpotts.co.uk/. We noticed the Google analytics account for Philpotts was recording traffic from the shopping cart in the form of referrals. We added the following GA customisation to sepaerate the sub domain:

<script type=“text/javascript”>

var _gaq = _gaq || ;
_gaq.push([‘_setAccount’, ‘UA-9585732-8’]);
_gaq.push([‘_setDomainName’, ‘.philpotts.co.uk’]);
_gaq.push([‘_trackPageview’]);

(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>

But since the implemtation all eCommerce tracking has flat lined :frowning: So my question is please:

“Why has installing the GA code above caused eCommerce tracking to suddenly go dead?”

Grazie tanto,
David