IDI-89: Analytics Tracking

Metadata

Source
IDI-89
Type
Improvement
Priority
Minor
Status
Open
Resolution
N/A
Assignee
N/A
Reporter
Greg Gay
Created
2012-05-25T12:46:46.050-0400
Updated
2014-07-09T16:36:56.256-0400
Versions
N/A
Fixed Versions
N/A
Component
  1. IDI site

Description

Add the following block of code immediately before the closing HEAD element for the IDI header template. Let greg know when its added so he can check to be sure it's working.

<script type="text/javascript">

var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-17057267-8']);
_gaq.push(['_trackPageview']);

(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();

</script>

Comments

  • Greg Gay commented 2012-05-25T12:50:22.245-0400

    note that Jira replaced the single quote with &#39;
    these will need to be replaced with a single quote before adding to the header template.