Hello!
Is there a place on admin area to put the Google Analytics code ? Or should I have to take some PHP file and add manually by myself ?
Is there someone to help me with that?
Thanks
Vini
Hello!
Is there someone to help me with that? Thanks Vini |
You place the analytics code in the footer of your site and it will work perfectly, this will cause it to appear on every page of your site except the admin panel sections. |
Depending on what you want to check with Analytics .. you CAN put it AT THE END of the index.php page like this .. <body> insert Google Analytics code here .. </body> Been running it like this for a while on my site. |
To track all places in your website place your analytics code in the footer.html right before the body tag. If you only put it on your index.html it will only track the main page and nothing else which is not very useful. |
That's what I ment by "Depending on what you want to check" .. I've had customers only wanting to check the traffic on their index.php .. Was just offering that option to Vini.. :) |
In the admin area under 'Tools' you will see 'Banners' - Create a new Banner, call it Google Analytics, paste your tracking code in the 'text' area, this way you don't need to edit footer page or anything. |
I put the google analytics script in the header of my site. It shouldn't be any different between header and footer....right? Just making sure. It's working okay for me. |
Putting Google Analytics in the header.html file will do the following:
1. Show an inflated bounce rate over what the foot.html will show. By placing in the footer.html at least the page content fully loads before the code is tagging as a bounce or starts timing when a user has a slow connection. 2. Will inflate your number of legitimate hits. How many times have you clicked something and backed out of it or closed it before it could even load? Analytics is designed to give the results (view time, bounce rate and click through rate) of different pages of your site on pages that FULLY load, not pages that don't get a chance to load.
If you use the banners manager your opening the door for the code to be inadvertently deleted and it may not load on every page of your site, only those that have banners. Beyond that, it again risks the chance of loading first before the page resolves completely and giving inaccurate results. The best results come from doing it the way it's supposed to be done, as recommended by Google, in the footer.html just before the bottom </body> tag. |
Putting Google Analytics in the header.html file will do the following: 1. Show an inflated bounce rate over what the foot.html will show. By placing in the footer.html at least the page content fully loads before the code is tagging as a bounce or starts timing when a user has a slow connection. 2. Will inflate your number of legitimate hits. How many times have you clicked something and backed out of it or closed it before it could even load? Analytics is designed to give the results (view time, bounce rate and click through rate) of different pages of your site on pages that FULLY load, not pages that don't get a chance to load. If you use the banners manager your opening the door for the code to be inadvertently deleted and it may not load on every page of your site, only those that have banners. Beyond that, it again risks the chance of loading first before the page resolves completely and giving inaccurate results. The best results come from doing it the way it's supposed to be done, as recommended by Google, in the footer.html just before the bottom </body> tag. ah it makes sense. I will put the script in the footer then. thanks :D |
Hi people!
But I still have one question. Where can I find the file footer.html ? thank |
templates/base/_footer.html |
Thank you! I've found Vini |
templates/base/_footer.html I use a custom template, the name is temp3, in this case the serious path templates/base/_footer.html or templates/temp3/_footer.html? |
does when I choose the UNI template, I can see the analytics code in the source code of the browser, but when I choose the custom template, the code of google, disappears, someone has an idea of because this happens? Incidentally I have the cache desabilitado and already clear the contents of the cache folder |
Instead of putting the code in the footer or header of your template, place the google code in the 'banner ad' manager in your admin area, this way when you change or if you have your site set up so members change change the theme of your site you don't lose your google code. Another way is you will have to add the code to each of your themes that you have loading on your site. I prefer to use the 'Banner Ad' manager for my google anylitics, have always used it and it works just fine. |
Hi, If anyone face problem in adding Analytics here is how its done : Open the File Templates/Base/_footer.html Add Your Analytics Code before </body> Tag
<literal> Add Your Analytics Code Here... </literal> and place all the code before </body> tag and it will work just fine. Cheer |
I placed mine in the header.inc.php file if that helps... https://dolphin-techs.com - Skype: Dolphin Techs |
That's weird. I would like to add Google Analytics but on my server I can't find the path templates/base/_footer.html Any suggestions? Thank |
I put my google analytics code in the banner ads from the admin panel like dtspace, it works great for me. |
Putting Google Analytics in the header.html file will do the following: 1. Show an inflated bounce rate over what the foot.html will show. By placing in the footer.html at least the page content fully loads before the code is tagging as a bounce or starts timing when a user has a slow connection. 2. Will inflate your number of legitimate hits. How many times have you clicked something and backed out of it or closed it before it could even load? Analytics is designed to give the results (view time, bounce rate and click through rate) of different pages of your site on pages that FULLY load, not pages that don't get a chance to load. If you use the banners manager your opening the door for the code to be inadvertently deleted and it may not load on every page of your site, only those that have banners. Beyond that, it again risks the chance of loading first before the page resolves completely and giving inaccurate results. The best results come from doing it the way it's supposed to be done, as recommended by Google, in the footer.html just before the bottom </body> tag. Thanks for the suggestion but as mydatery points out, placing the Google Analytics within the banner block it may not be such a good idea....! |
The best way its the _footer.html in the map templates/base. Kids first |
Google Analytics do belong in the footer. I use the bottom placement in banners, and it works well for me. |
Following Google's instructions - the NEW Google Analytics code should be placed in the HEAD sectione, immediately before </head> tag. Then, to implement the Google Analytics, edit the file: /templates/base/_header.html. Paste your Google Analytics code immediately before </head>
<script type="text/javascript"> </head>
Don't forget to empty /cache and /cache_public folders to see Google Analytics code in the page source.
It works OK for my, I mean - all data is gathered.
|
the problem is that header does not have utf-8 encoding. What should we do there? Open it and save it as utf-8? |
the problem is that header does not have utf-8 encoding. What should we do there? Open it and save it as utf-8? |
i open header. It has another encoding. Should i edit it in utf-8??? |
i open header. It has another encoding. Should i edit it in utf-8??? |
yes yes yes ManOfTeal.COM a Proud UNA site, six years running strong! |
Thank you! This post was very helpful for me. |