jira.codehaus.org

  • Log In Access more options
    • Online Help
    • Keyboard Shortcuts
    • About JIRA
    • JIRA Credits
    • What?s New
  • Dashboards Access more options (Alt+d)
  • Projects Access more options (Alt+p)
  • Issues Access more options (Alt+i)
  • Sonar
  • SONAR-231

Possibility to activate google analytics

  • Log In
  • Views
    • XML
    • Word
    • Printable

Details

  • Type: New Feature New Feature
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: 1.5
  • Fix Version/s: 1.5
  • Component/s: Web
  • Labels:
    None

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.

Activity

  • All
  • Comments
  • Work Log
  • History
  • Activity
Hide
Permalink
Simon Brandhof added a comment - 21/Jul/08 2:23 AM

Important need for nemo.

Show
Simon Brandhof added a comment - 21/Jul/08 2:23 AM Important need for nemo.

People

  • Assignee:
    Julien Lancelot
    Reporter:
    Simon Brandhof
Vote (0)
Watch (0)

Dates

  • Created:
    28/Apr/08 3:53 AM
    Updated:
    17/Dec/08 1:50 AM
    Resolved:
    25/Jul/08 4:00 AM
  • Atlassian JIRA (v5.0.4#731-sha1:3aa7374)
  • Report a problem
  • Powered by a free Atlassian JIRA open source license for Codehaus. Try JIRA - bug tracking software for your team.