You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@openoffice.apache.org by bu...@apache.org on 2012/07/17 23:36:40 UTC

[Bug 120301] New: Wrong Google Analytics codes on MWiki

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.

[Bug 120301] Wrong Google Analytics codes on MWiki

Posted by bu...@apache.org.
https://issues.apache.org/ooo/show_bug.cgi?id=120301

Rob Weir <ro...@apache.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |VERIFIED

--- Comment #2 from Rob Weir <ro...@apache.org> ---
I verified that information from the wiki is now flowing properly to the Google
Analytics account.

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

[Bug 120301] Wrong Google Analytics codes on MWiki

Posted by bu...@apache.org.
https://issues.apache.org/ooo/show_bug.cgi?id=120301

jan iversen <ja...@apache.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|CONFIRMED                   |RESOLVED
                 CC|                            |jani@apache.org
         Resolution|---                         |FIXED

--- Comment #1 from jan iversen <ja...@apache.org> ---
Changed the UA code, it needs to be tested

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