Project

General

Profile

Task #2989

Story #2987: Track CI use during release process

Add analytics tracker to Portal pages

Added by Dave Vieglais over 12 years ago. Updated over 12 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Ben Leinfelder
Category:
d1_portal_servlet
Start date:
2012-06-20
Due date:
% Done:

100%

Milestone:
CCI-1.0.2
Product Version:
*
Story Points:
Sprint:

Description

Add a google analytics tracker to the portal pages. The tracker id is "UA-15017327-10" and it can be enabled by adding the following script to the portal pages:

var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-15017327-10']);
_gaq.push(['_setDomainName', 'dataone.org']);
_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);
})();

History

#1 Updated by Dave Vieglais over 12 years ago

For non-production environments, use tracker ID of "UA-15017327-13"

Environment can probably be determined by the host name, and the appropriate tracker id set accordingly

#2 Updated by Ben Leinfelder over 12 years ago

  • Status changed from New to In Progress

in trunk for 1.1 release

#3 Updated by Ben Leinfelder over 12 years ago

  • Status changed from In Progress to Closed

added to 1.0.x branch

Also available in: Atom PDF

Add picture from clipboard (Maximum size: 14.8 MB)