Leave a Reply

2 comments

  1. <script type="text/javascript">
      logged = <?php if(is_user_logged_in()): echo 1 ; else: echo 0 ; endif; ?> ;
      if(!logged){
        // Execute Google Analytics Code Here
      }
    </script>
    

    A bit of PHP can make it a whole lot easier.
    It will work in wordpress 2.0.0+