Details
Description
Google analytics should be activated within the HTML footer. It can be useful for public sonar instances like nemo.
The HTML code to add just before </body> is :
<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"> var pageTracker = _gat._getTracker("THE GOOGLE ANALYTICS ID"); pageTracker._initData(); pageTracker._trackPageview(); </script>
Note that "THE GOOGLE ANALYTICS ACCOUNT ID" should be set from plugin preferences.
Properties are :
- sonar.google-analytics.account
- sonar.google-analytics.active : true/false
This feature must be developed as a plugin (key : "google-analytics"). The extension point is WebFooter.
Important need for nemo.