Adding Google Analytics
Is there a way to add Google analytics to all pages.
| Propriétaire | Boen, Jan |
| Avancement | ![]() |
| Workflow | Besoin d'aide |
| Statut | Le problème a été enregistré
|
This is the script I would like to add.
<script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
</script>
<script type="text/javascript">
try {
var pageTracker = _gat._getTracker("UA-15066440-1");
pageTracker._trackPageview();
} catch(err) {}</script>
How can this be done?
Thanks,
Jan
![]() Boen, Jan | The Google Analytics script doesn't work. Suggestions?
|
Bernard Paques | If I remember correctly, yacs provides native support for Urchin, which is the previous name for Google Analytics. All you have to do is to enter the id to use in the configuration panel for services. This will set the global parameter
|
![]() J.Juraver | One more info : in your google-analytics panel, you should create a filter in the parameters section, wich disable your own IP tracking. If not done, GG analytics will registrer some visited pages as purge.php and any administration action done as you are authenticated in your yacs site... Je ne m'attarde pas, j'ai mon yacs en double file...
![]() Yacs on my blog | Suivez le blog Yacs | Yacs Showroom | Plugin Firefox de recherche dans Yetanoz | |
![]() Alexis Raimbault | Hello Jan, You can add this in control panel, building of pages. there's a edit field to add some script to all pages. Another solution is to include your script inside your template.php, but first solution is easiest. Alexis Raimbault webmaster free-lance
|
![]() Boen, Jan |

















