Plugin Directory

Changeset 182115


Ignore:
Timestamp:
12/12/2009 05:35:15 PM (16 years ago)
Author:
cavemonkey50
Message:

Updates the async tracking snippet to the latest version provided by Google.

Location:
google-analyticator/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • google-analyticator/trunk/google-analyticator.php

    r180340 r182115  
    798798
    799799    (function() {
    800         var ga = document.createElement('script');
     800        var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
    801801        ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
    802         ga.setAttribute('async', 'true');
    803         document.documentElement.firstChild.appendChild(ga);
     802        (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(ga);
    804803    })();
    805804</script>
  • google-analyticator/trunk/readme.txt

    r180340 r182115  
    55Requires at least: 2.7
    66Tested up to: 2.9
    7 Stable tag: 6.0.1
     7Stable tag: 6.0.2
    88
    99Adds the necessary JavaScript code to enable Google Analytics. Includes widgets for Analytics data display.
     
    5050== Changelog ==
    5151
    52 = 6.0.1=
     52= 6.0.2 =
     53* Updates the async tracking snippet to the latest version provided by Google.
     54
     55= 6.0.1 =
    5356* Adds a missing closing quote on setVar - admin. If you use this option, update ASAP to prevent Javascript from breaking.
    5457
Note: See TracChangeset for help on using the changeset viewer.