Google Analytics

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

Quote · 14 Jan 2010

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.

Quote · 14 Jan 2010

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.

Quote · 14 Jan 2010

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.

Quote · 14 Jan 2010

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.. :)

Quote · 14 Jan 2010

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.

Quote · 14 Jan 2010

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.

Quote · 14 Jan 2010

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.

Quote · 14 Jan 2010

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

Quote · 14 Jan 2010

Hi people!


Thanks for all posts!

But I still have one question. Where can I find the file footer.html ?

thank

Quote · 14 Jan 2010

templates/base/_footer.html

Quote · 14 Jan 2010

Thank you!

I've found

Vini

Quote · 14 Jan 2010

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?

Quote · 15 Feb 2010

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

Quote · 15 Feb 2010

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.

Quote · 16 Feb 2010

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


In the beginning of your Analytics Code Add this tag

<literal>

Add Your Analytics Code Here...

</literal>

and place all the code before </body> tag and it will work just fine.

Cheer

Quote · 14 Mar 2010

I placed mine in the header.inc.php file if that helps...

https://dolphin-techs.com - Skype: Dolphin Techs
Quote · 14 Mar 2010

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

Quote · 29 Mar 2010

I put my google analytics code in the banner ads from the admin panel like dtspace, it works great for me.

Quote · 29 Mar 2010

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....!

Quote · 29 Mar 2010

The best way its the _footer.html in the map templates/base.

Kids first
Quote · 29 Mar 2010

Google Analytics do belong in the footer.  I use the bottom placement in banners, and it works well for me.

Quote · 29 Mar 2010

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">
... Your GA code...
</script>

</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.

 

Quote · 26 Nov 2010
the problem is that header does not have utf-8 encoding. What should we do there? Open it and save it as utf-8?
Quote · 8 Oct 2011
the problem is that header does not have utf-8 encoding. What should we do there? Open it and save it as utf-8?
Quote · 8 Oct 2011
i open header. It has another encoding. Should i edit it in utf-8???
Quote · 8 Oct 2011
i open header. It has another encoding. Should i edit it in utf-8???
Quote · 8 Oct 2011

yes yes yes

ManOfTeal.COM a Proud UNA site, six years running strong!
Quote · 8 Oct 2011

Thank you!

This post was very helpful for me.

Quote · 4 Nov 2011
 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.