---
title: "Methods"
date: "2024-07-24T17:55:12+00:00"
summary: "Explore cookie banner methods for Acquia Web Governance Consent Manager. Control banner display, manage consent, and load scripts easily."
image:
type: "page"
url: "/web-governance/methods-0"
id: "9dcf5ee7-2897-4c54-9a4f-0f39b3d143fa"
---

Cookie banner methods can be invoked via the `window.monsidoConsentManager` object.
===================================================================================

Name

Arguments

Description

init

None

When manualStartup setting is enabled, use this method to manually load the cookie banner.

showBanner

screen?: string

Displays the cookie banner dialog. A screen name can be passed in to directly display it. Available screens: `cookie-preferences`

hideBanner

None

Hides the cookie banner dialog.

renewBanner

None

Displays the cookie banner dialog and resets cookie consent state.

withdrawConsent

None

Withdraw current visitor consent for this website

loadScript

url: string, type: string, position: 'body' | 'head', isAsync?: boolean, callback?: function

Loads a script from a URL. `url` the absolute path to the script, `type` defaults to 'text/javascript', `position` determines where the script element will be added (default to `body`), `async` script should load asynchronously or not. `callback` function to be executed when the script has finished loading.

Example[​](https://developer.monsido.com/consent-manager/methods#example "Direct link to Example")
--------------------------------------------------------------------------------------------------

    function onButtonClick() {
      window.monsidoConsentManager.showBanner();
    }