Inserting Script For Google
Countryfied
Registered Users Posts: 38 Big grins
Signed up for google analytics. It is telling me to add a tracking script to my site. What page or where do I place this. The script is:
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push();
_gaq.push();
(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>
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push();
_gaq.push();
(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>
0
Comments
no need for scripts here. we make it easy for you to add google analytics; just put your analytics id in the google analytics box in the settings tab of your control panel.
more help here:
http://www.smugmug.com/help/acctreport#google
Thanks. Done.