Add Code Google Analitycs in Datalife ?

Status
Not open for further replies.

cca1690

Active Member
453
2011
39
0
Hello, New Here, I would like to tell me how I can put the google code Analitycs, which file should I put it? and that part of that file?


Thanks :)
 
9 comments
Login in your admin panel and then go to Edit Templates and then choose "main.tpl"
and put the google code Analitycs before </head> tag.
 
While this code? I have to paste the same as it give me?




<script type="text/javascript">

var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'MY CODE']);
_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>
 
^^

Yes if it fails by admin panel

Then login by ftp and go to

"templates/yourtemplatename/main.tpl"

Note: Add the tags before the </body> tags
 
Status
Not open for further replies.
Back
Top