Add support for Google Analytics to the Portal

Description

This JIRA will add support to Sakai's portal to include JavaScript to add Google analytics to all of the pages served by Sakai. This will require several new properties.

portal.google.analytics_id=UA-12345-5
portal.google.analytics_domain=www.dr-chuck.com
portal.google.analytics_detail=true

When a analytics_id is specified, the GA (ga.js) code is include in the portal pages. If analytics_detail is true, the user's eid and siteId are sent as Custom Variables 1 and 2.

https://developers.google.com/analytics/devguides/collection/gajs/gaTrackingCustomVariables

Activity

Show:

Matthew Jones December 15, 2014 at 10:56 AM

Okay, great. I'm going to setup a Apereo analytics account and get the appropriate people access so we can test and enable these features on all of the new nightlies. It looks and works really nice though for 10!

Charles R Severance December 15, 2014 at 10:52 AM

Matt - I just updated the description of this JIRA so as not to mislead. Thanks.

Matthew Jones December 15, 2014 at 10:47 AM

The property for
portal.google.analytics_domain=http://www.dr-chuck.com/

Should just be the domain so for instance
portal.google.analytics_domain=www.dr-chuck.com

Or tested with
portal.google.analytics_domain=qa10.longsight.com

Otherwise the realtime tracking and some other data didn't appear correct. Otherwise I've verified this. I haven't verified the universal analytics yet in as I don't have a domain that's setup for 11, but should be able to do that soon. I've also added these properties to the default properties file.

Charles R Severance November 5, 2014 at 10:27 AM

I agree - It will not be hard to support both alternatives.

Sam Ottenhoff November 5, 2014 at 10:11 AM

Yes, please file a new JIRA related to this JIRA, and we can get the code updated.

Fixed

Details

Priority

Affects versions

Fix versions

Components

Assignee

Reporter

Property addition/change required

Yes
Created January 27, 2014 at 12:57 PM
Updated July 21, 2016 at 3:40 PM
Resolved February 3, 2014 at 12:03 AM