library/core/class.statistics.php
public function Check() {
      // If we're hitting an exception app, short circuit here
      if (!self::CheckIsAllowed()) {
         return;
      }
      Gdn::Controller()->AddDefinition('AnalyticsTask', 'tick');
      
      if (self::CheckIsEnabled()) {
         // At this point there is nothing preventing stats from working, so queue a tick.
         Gdn::Controller()->AddDefinition('TickExtra', $this->GetEncodedTickExtra());
      }
   }
public function Check() {
      // If we're hitting an exception app, short circuit here
      if (!self::CheckIsAllowed()) {
         return;
      }
      Gdn::Controller()->AddDefinition('AnalyticsTask', 'tick');
      
      if (self::CheckIsEnabled()) {
         // At this point there is nothing preventing stats from working, so queue a tick.
         Gdn::Controller()->AddDefinition('TickExtra', $this->GetEncodedTickExtra());
      }
   }
public function Check ( ) { // If we're hitting an exception app, short circuit here if ( ! self :: CheckIsAllowed ( ) ) { return ; } Gdn :: Controller ( ) -> AddDefinition ( 'AnalyticsTask' , 'tick' ) ; if ( self :: CheckIsEnabled ( ) ) { // At this point there is nothing preventing stats from working, so queue a tick. Gdn :: Controller ( ) -> AddDefinition ( 'TickExtra' , $ this -> GetEncodedTickExtra ( ) ) ; } }
This method is called each page request and checks the environment. If
a stats send is warranted, tells the browser to ping us back.

If the site is not registered at the analytics server (does not contain
a guid), have the browser request a register instead and defer stats until
next request.

@return void
This method is called each page request and checks the environment . If a stats send is warranted tells the browser to ping us back .