Changeset 1354

Show
Ignore:
Timestamp:
11/25/08 21:29:40 (6 weeks ago)
Author:
rickc
Message:

Plugin googleanalytics: Changed needed to coexist with anonymous users. Also removed a deprecated line from google's js and bumped version number.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • plugins/googleanalytics/trunk/googleanalytics.plugin.php

    r1269 r1354  
    1010            'author' => 'Graham Christensen', 
    1111            'authorurl' => 'http://iamgraham.net/', 
    12             'version' => '0.5-alpha' 
     12            'version' => '0.5.1' 
    1313        ); 
    1414    } 
     
    5151            return; 
    5252        } 
    53         if ( User::identify() ) { 
     53        if ( User::identify()->loggedin ) { 
    5454            // Only track the logged in user if we were told to 
    5555            if ( !Options::get('googleanalytics__loggedintoo') ) { 
     
    6565<script type="text/javascript"> 
    6666    var pageTracker = _gat._getTracker("{$clientcode}"); 
    67     pageTracker._initData(); 
    6867    pageTracker._trackPageview(); 
    6968</script>