public function renderMethod(MethodInterface $method)
    {
        if (!$method->supports(MethodInterface::BROWSER_PLATFORM)) {
            throw new \InvalidArgumentException('Renderer only accepts browser methods.');
        }

        return 'window.analytics.' . $method->getName() . '(' . $this->renderArguments($method) . ');';
    }