Show
Ignore:
Timestamp:
09/01/08 14:43:25 (4 months ago)
Author:
chrismeller
Message:

Added a configuration option that lets you track logged-in users too.

Files:
1 modified

Legend:

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

    r788 r872  
    2929                    $form= new FormUI(strtolower(get_class($this))); 
    3030                    $form->append('text', 'clientcode', 'googleanalytics__clientcode', _t('Analytics Client Code')); 
     31                    $form->append('checkbox', 'loggedintoo', 'googleanalytics__loggedintoo', _t('Track logged-in users too')); 
    3132                    $form->append('submit', 'save', 'Save'); 
    3233                    $form->out(); 
     
    5152        } 
    5253        if ( User::identify() ) { 
    53             // User is logged in, don't want to record that, do we? 
    54             return; 
     54            // Only track the logged in user if we were told to 
     55            if ( !Options::get('googleanalytics__loggedintoo') ) { 
     56                return; 
     57            } 
    5558        } 
    5659        $clientcode= Options::get('googleanalytics__clientcode');