Back to the help center

Integrations

Umbraco setup

Add the banner to an Umbraco site

Add the GetCookies banner to an Umbraco site.

Install

  1. In your layout template (e.g., _Layout.cshtml), add the loader script in <head>:
<script src="https://app.getcookies.co/api/v1/widget/loader.js"
        data-domain-id="YOUR_DOMAIN_ID"
        async></script>
  1. Publish the template.

Verify

  • Browse the site in incognito; banner should appear.
  • Check trackers are blocked until consent.

Tips

  • For hard-coded scripts, wrap them with data attributes (type="text/plain").
  • If using GTM, consider the GTM template or hybrid blocker for stricter control.

Still stuck?

Email [email protected] with your domain and what you tried. Signed-in customers can also open a ticket from the dashboard.