incubator-ooo-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject [Bug 120301] New: Wrong Google Analytics codes on MWiki
Date Tue, 17 Jul 2012 21:36:40 GMT
https://issues.apache.org/ooo/show_bug.cgi?id=120301

          Priority: P3
            Bug ID: 120301
          Assignee: ooo-issues@incubator.apache.org
           Summary: Wrong Google Analytics codes on MWiki
          Severity: normal
        Issue Type: DEFECT
    Classification: Infrastructure
                OS: All
          Reporter: robweir@apache.org
          Hardware: All
            Status: CONFIRMED
           Version: AOO 3.4.0
         Component: Website general issues
           Product: www

The MWiki pages have the following at the bottom of each page:

<script type="text/javascript">

  var _gaq = _gaq || [];
  _gaq.push(['_setAccount', 'UA-1087265-7']);
  _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>


This is incorrect.  The account number there (UA-1087265-7) is a legacy
account, not the one used used by the rest of the website.  Until this is fixed
we have no accurate stats on wiki usage in relationship to the rest of the
website.

The correct code to use is:

<script type="text/javascript">
    var _gaq = _gaq || [];
    _gaq.push(['_setAccount', 'UA-30193653-1']);
    _gaq.push(['_setDomainName', 'openoffice.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);
    })();
    </script>


Please use this code fragment.  Ideally it should be placed before the closing
</head> of each page.  But where it is at the bottom will work as well.

-- 
You are receiving this mail because:
You are the assignee for the bug.

Mime
View raw message