We do something similar. We rolled it out a while ago, before the new the new
"Universal" thing. If you look at the source of
http://researcharchive.vuw.ac.nz/ there are two google code sections. The first
is our hand-rolled cross-site google code:
<script language="javascript" type="text/javascript"
src="http://library.vuw.ac.nz/library/sites/all/themes/custom/library2/js/jquery/jquery-1.5.2.min.js">
// </script>
<script language="javascript" type="text/javascript"
src="http://library.vuw.ac.nz/library/sites/all/themes/custom/library2/js/LIB/lib.ga.js">
// </script>
<script language="javascript" type="text/javascript">
LIB.GA.init();
LIB.GA.trackPageview();
</script>
</div>
Which was cut-and-pasted directly into the skin that we're using. Below that is
the default code:
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-6716162-1']);
_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>
Cheers
stuart
From: Jennifer Cwiok [mailto:jcw...@amnh.org]
Sent: Thursday, 1 May 2014 7:38 a.m.
To: dspace-tech@lists.sourceforge.net
Subject: [Dspace-tech] using two google analytics accounts in DSpace
Hi everyone,
Our centralized IT group wants to implement Universal Google Analytics in our
organization and our department is one of the test cases. We already have
Dspace stats and a Google Analytics account for Dspace. We want to add the
Universal Google Analytics code from our central IT in addition to the
statistics we already have in place. Does anyone know if this is possible? And
where would I add the code for the Universal Google Analytics account?
Thanks in advance,
Jennifer
--
Jennifer Cwiok
Digital Projects Manager
American Museum of Natural History
Research Library
79th Street and Central Park West
New York, NY 10024-5192
212-769-5644
http://library.amnh.org
------------------------------------------------------------------------------
"Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
Instantly run your Selenium tests across 300+ browser/OS combos. Get
unparalleled scalability from the best Selenium testing platform available.
Simple to use. Nothing to install. Get started now for free."
http://p.sf.net/sfu/SauceLabs
_______________________________________________
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech
List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette