Google Analytics setup

Using cs-cart ver 2.1.1

I thought I had google analytics turned on but had used a wrong id. So after I corrected that I looked at the source and compared to what the Google Analytics said I should have. There was a difference in the following line:



from my site in the addons/google_analytics/hooks/index/foot.post.tpl



document.documentElement.firstChild.appendChild(ga);





Google says it should be



var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);







Should this be changed in the tpl file?



Thanks for any help,

David DeWitt