protected function track(?int $typeId = null, ?int $itemId = null, int $flag = 0, $data = null, $user = null)
    {
        // Login event
        // Add request url

        $this->writer->register([
            'user'          => $this->getUserId($user),
            'type'          => $this->type,
            'typeId'        => $typeId,
            'itemId'        => $itemId,
            'flagLevel'     => $flag,
            'data'          => $data,
        ]);
    }