Solved
Google trackign code question
Hi anyone who can help,
we already have a bunnch of landing pages with the google code in the meta tag custom head area. if i now go and add to the template will that be a problem (basically making some landing pages have the code twice)
or would i have to go through and remove all the code ffrom the individual landing pages?
also i am not a coder so still not sure where to put my code within the placeholder on my template
<!-- GOOGLE ANALYTICS. ENTER YOUR CODE and UNCOMMENT block -->
<!--
<script src="http://www.google-analytics.com/urchin.js" type="text/javascript">
</script>
<script type="text/javascript">
_uacct = "YOURCODE";
urchinTracker();
</script>
where would my code go-- all in the "YOURCODE" area?
this is my code:
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-3839367-1']);
_gaq.push(['_setDomainName', 'enkata.com']);
_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>
we already have a bunnch of landing pages with the google code in the meta tag custom head area. if i now go and add to the template will that be a problem (basically making some landing pages have the code twice)
or would i have to go through and remove all the code ffrom the individual landing pages?
also i am not a coder so still not sure where to put my code within the placeholder on my template
<!-- GOOGLE ANALYTICS. ENTER YOUR CODE and UNCOMMENT block -->
<!--
<script src="http://www.google-analytics.com/urchin.js" type="text/javascript">
</script>
<script type="text/javascript">
_uacct = "YOURCODE";
urchinTracker();
</script>
where would my code go-- all in the "YOURCODE" area?
this is my code:
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-3839367-1']);
_gaq.push(['_setDomainName', 'enkata.com']);
_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>