### Eclipse Workspace Patch 1.0 #P d1_mercury_ui Index: src/main/webapp/WEB-INF/views/brief.jsp =================================================================== --- src/main/webapp/WEB-INF/views/brief.jsp (revision 9431) +++ src/main/webapp/WEB-INF/views/brief.jsp (working copy) @@ -44,6 +44,8 @@ + + + Index: src/main/webapp/scripts/googleAnalytics.js =================================================================== --- src/main/webapp/scripts/googleAnalytics.js (revision 0) +++ src/main/webapp/scripts/googleAnalytics.js (revision 0) @@ -0,0 +1,20 @@ +// assign google anaylytics key based on the hostname of originating web server. +var _gaq_account = 'UA-15017327-12'; // non-prod analytics account +var current_host = window.location.hostname; +if ('cn-unm-1.dataone.org' === current_host || + 'cn-ucsb-1.dataone.org' === current_host || + 'cn-orc-1.dataone.org' === current_host || + 'cn.dataone.org' === current_host) { + _gaq_account = 'UA-15017327-9'; // production analytics account +} + +var _gaq = _gaq || []; +_gaq.push(['_setAccount', _gaq_account ]); +_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); +})(); Index: src/main/webapp/WEB-INF/views/full.jsp =================================================================== --- src/main/webapp/WEB-INF/views/full.jsp (revision 9267) +++ src/main/webapp/WEB-INF/views/full.jsp (working copy) @@ -40,8 +40,9 @@ + + - - + -
+