public static function add()
    {
        try {
            $ip = Yii::$app->request->userIp;
            $url = Yii::$app->request->url;
            if (empty($ip)) {
                $ip = '0.0.0.0';
            }
            if (Podium::getInstance()->user->isGuest) {
                if (static::addGuest($ip, $url)) {
                    return true;
                }
            } else {
                if (static::addUser($ip, $url)) {
                    return true;
                }
            }
            Log::error('Cannot log user activity', null, __METHOD__);
        } catch (Exception $e) {
            Log::error($e->getMessage(), null, __METHOD__);
        }
        return false;
    }