コード例 #1
0
 /**
  * Track a hit and display a transparent 1x1px gif
  *
  * @return string
  * @throws \Exception
  */
 public function actionI()
 {
     try {
         // Analytics collect data requests from the trackers in the GET or POST form,
         // and write it to logs.
         Analytics::collect();
     } catch (\Exception $e) {
         if (defined('YII_DEBUG') && YII_DEBUG) {
             throw $e;
             // Enable in debug
         }
     }
     return $this->getTransparentGif();
 }