Skip to Navigation Skip to Content

Learn how to create a cookie consent banner with GetTerms. In this guide, we’ll show you how to style, configure, and install a cookie banner on your website.

Need a simple way to manage user consent?

Try our Cookie Consent Manager

Watch the video guide!

Create your Cookie Banner & policy

You can use our Cookie Banner Generator to quickly add a consent banner to your website.

  1. Sign in (or create) your GetTerms account.
  2. From the overview page, click the box that says cookie consent banner & cookie policy to start the Cookie Banner setup wizard.
  3. Input your contact details for data privacy related inquiries.
  4. Click Add Cookie Banner & Policy.

Your Cookie Banner has now been generated. GetTerms will automatically start scanning your website for cookies and categorizing them for you.

Customize your Cookie Banner

By default, your Cookie Banner will be set up with our recommended appearance settings and configured for global privacy compliance. If you’re happy with the default appearance settings, you can skip to section 5 to install your banner on your website.

If you’d like to customize your banner’s appearance, let’s walk you through some of the settings.

  1. Font size
  2. Background color
  3. Link text color
  4. Button text color
  5. Button color
  6. Reject all cookies button: Enabled/disabled per-region via the ‘Configuration’ page.
  7. Granular consent controls: Enabled/disabled per-region via the ‘Configuration’ page.
  8. Persistent icon to manage preferences: Enabled/disabled per-region via the ‘Configuration’ page.

Blocking page interaction until preferences are set

This setting encourages your users to set their cookie preferences before they interact with your site. We recommend enabling this if you’re using a discrete banner style, such as the card, banner or pill. Using a discrete banner without blocking interaction may result in your tracking tags not firing and a loss of analytics data.

Configure your Cookie Banner’s behavior

  1. Google consent mode: Enables Google consent mode integration. When enabled you banner will send each user’s consent signals to Google Platforms such as Google Analytics. Follow our setup guide.
  2. Region specific configuration: Set the behavior of your Cookie Banner based on each user’s location.
  3. Script blocking: Blocks cookies and trackers until consent is given. Note: This will cause the page to reload whenever the user interacts with the banner to ensure scripts run correctly.
  4. Reject all cookies button: Adds a ‘Reject All’ to the first layer of your Cookie Banner. This is required in the EU and the UK, and strongly recommended in the USA and Canada.
  5. Global default banner configuration: Set the behavior of your Cookie Banner for users outside of the regions specified in the region specific configurations.
  6. Consent setting: Preset banner behaviors. We recommend leaving this set to the default setting.
    1. Opt-in (Recommended): A preset that blocks cookies until consent is given.
    2. Opt-out: A preset that only blocks cookies if the user withdraws consent.
    3. Custom: Gives you complete control over all settings.
    4. Use global default: Sets the region to follow the settings you’ve configured under ‘Global default banner configuration’.
    5. No banner: Hides the banner for that region.
  7. Persistent icon to manage preferences: Enables the floating icon for reopening the consent modal.
  8. Allow granular consent controls: Enables the preferences button which allows users to consent to cookies based on their individual purpose (Marketing, Statistics, Functional). This is required for most countries, or if you are using Google consent mode.

USA specific settings

Some settings are specific to the United states. These settings control how your banner interacts with Global Privacy Controls.

 

  1. Respect Global Privacy Control (GPC) signals: The GPC signal allows users to opt out of data sales or the use of their data for cross-context targeted advertising for all sites they visit using a browser plugin.Under the California Consumer Privacy Act (CCPA), sites must respect the Global Privacy Control (GPC) settings of residents of California.
  2. State-specific banner configuration: Set the Cookie Banner behavior for users in California.
  3. Show GPC detection notice?: Enables a message that informs users when their consent preferences are updated to reflect their GPC setting.

Once you’re happy with your banner’s configuration, click Save. As with the appearance settings, it will take about 2 minutes for your changes to display on your live banner. This timer resets each time you update your settings.

 

Edit your Cookie Banner’s content

From the content page of your dashboard, you can customize all visible text on your Cookie Banner. Content is customizable on a per-language basis, meaning if you make a change to English (UK) it will have no impact on the other translations.

From here, you’ll also be able to change the cookie policy link displayed on your Cookie Banner. By default, we will link to the generated cookie policy, hosted via our website in the relevant language.

Make sure that the language you’re editing corresponds with the banner you’ve installed on your site.

Edit language:

We provide translations for English (UK), English (US), Hindi, Spanish, German, French, and Italian. In addition to this, we allow for one custom translation. Selecting a language from the edit language dropdown menu will open the content fields for the selected language.

This setting does not control the default language of your Cookie Banner. To change the default language your banner displays in, you’ll need to navigate to the installation page.

Click Save at the bottom of the page to save your changes.

 

Options for installing your Cookie Banner on your website

Once you’ve set up your banner with your desired appearance and configuration settings, you can install it using one of 3 methods.

  1. Manual installation (recommended): Place your banner’s code snippet directly in your website’s <head> section.
  2. Via WordPress plugin: Install the GetTerms WordPress plugin via the WordPress Plugin Directory to get access to all of your policies as handy short codes as well as embedding your Cookie Consent Widget in a single click.
  3. Via Google Tag Manager: Install and manage your banner using our Tag Template found in the Google Tag Manager Community Template Gallery. Note: This will prevent script blocking from working reliably.
  1. Go to the Installation tab of your consent banner and copy the consent banner embed script.
  2. Paste this code as high in the <head> of the page as possible. It must be the first <script> in the head section of your website and before your Google Tag Manager installation code.

If you’re on WordPress, check out our guide for installing a cookie banner on your WordPress website using our WordPress plugin.

If the plugin isn’t behaving as expected, here’s a list of common causes and how to fix them.

If you’re using WordPress, you must install WPconsentAPI with your cookie banner.

WP Consent API is a plugin that shares your visitors’ consent choices with other WordPress plugins and themes.

Many plugins set cookies in their own way, which can make them hard to control with script blocking alone. Without this extra signal, some plugins may run and set cookies before consent is given.

If neither of the above options work for you, you can install our banner via Google Tag Manager.

Warning: This installation method reduces script blocking reliability and requires Google consent mode to be enabled. We don’t recommend this method unless all your cookie scripts are installed and managed with GTM.

Manage your cookies

While you’ve been setting up and installing your banner, our cookie scanner has been crawling your website, finding any active cookies and trackers and categorizing them for you. Any cookies found on the Cookie Management page, under Active Cookies, will be displayed on the second layer of your Cookie Banner.

You can add, edit, and remove any active cookie using the cookie editor.

    1. Click the dropdown of any of the cookie categories to display the active cookies belonging to the category.
    2. Click Add a cookie to add any cookies not found by our scanner. Cookies behind a login page or cart page may not be visible to our scanner.
    3. Click the pencil icon to open the cookie editor.
      1. Key: The unique name belonging to the cookie (e.g. _ga)
      2. Category: The category belonging to the tracking cookie
      3. Data controller: The name of the company responsible for creating the cookie, e.g. Google
      4. Platform: The platform the cookie is tied to
      5. Domain: The domain that sets the cookie; usually this is your domain
      6. Retention period: How long the cookie stays saved in the user’s browser before expiring
      7. Description: A description of what the cookie does, e.g. setting an ID that identifies unique users
  1. Click Save to save any edits made to a cookie.
  2. Click Back to report to go back to the Cookie Management page.
  3. Click the red subtract/delete button to remove a cookie from the active cookies and place it in the inactive cookies section. Inactive cookies won’t be displayed on your consent banner.
    1. Clicking Restore will place the cookie back in the active cookies section.
    2. Clicking the trash can will remove the cookie from the report entirely. Note: If the cookie is detected in a later scan, it will be re-added to the inactive cookies section automatically.

Make sure your Cookie Banner is working properly

The main functionality of a Cookie Banner is to block scripts when consent for tracking cookies has been denied by the user. You can test whether you Cookie Banner is really blocking cookies using your browsers developer tools.

How to test if your Cookie Banner is blocking cookies

Customize your own cookie banner now!

Try our Cookie Banner Generator