DSpace
  1. DSpace
  2. DS-550

Upgrade to latest Google Analytics tracking code

    Details

    • Type: Improvement Improvement
    • Status: Closed Closed (View Workflow)
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 1.5.0, 1.5.1, 1.5.2, 1.6.0
    • Fix Version/s: 1.7.0
    • Component/s: XMLUI
    • Labels:
      None
    • Attachments:
      1
    • Comments:
      2

      Description

      See:

       - http://analytics.blogspot.com/2010/04/making-web-faster.html
       - http://analytics.blogspot.com/2009/12/google-analytics-launches-asynchronous.html
       - http://www.google.com/support/googleanalytics/bin/answer.py?answer=161379
       - http://code.google.com/apis/analytics/docs/tracking/asyncTracking.html

      <script type="text/javascript">

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

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

      </script>

      We've determined that on most pages, the optimal location for the asynchronous snippet is at the bottom of the <head> section, just before the closing </head> tag.

        Activity

        Hide
        Stuart Lewis added a comment -
        Patch
        Show
        Stuart Lewis added a comment - Patch
        Hide
        Stuart Lewis added a comment -
        Author: stuartlewis
        Date: Fri Oct 15 06:48:37 2010
        New Revision: 5433

        Log:
        [DS-550] Upgrade to latest Google Analytics tracking code

        Modified:
          dspace/trunk/dspace-xmlui/dspace-xmlui-webapp/src/main/webapp/themes/dri2xhtml/structural.xsl
          dspace/trunk/dspace/CHANGES
        Show
        Stuart Lewis added a comment - Author: stuartlewis Date: Fri Oct 15 06:48:37 2010 New Revision: 5433 Log: [ DS-550 ] Upgrade to latest Google Analytics tracking code Modified:   dspace/trunk/dspace-xmlui/dspace-xmlui-webapp/src/main/webapp/themes/dri2xhtml/structural.xsl   dspace/trunk/dspace/CHANGES

          People

          • Assignee:
            Stuart Lewis
            Reporter:
            Stuart Lewis
          • Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: