Flowcourier.Umbraco.CookieConsent 17.2.0

dotnet add package Flowcourier.Umbraco.CookieConsent --version 17.2.0
                    
NuGet\Install-Package Flowcourier.Umbraco.CookieConsent -Version 17.2.0
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Flowcourier.Umbraco.CookieConsent" Version="17.2.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Flowcourier.Umbraco.CookieConsent" Version="17.2.0" />
                    
Directory.Packages.props
<PackageReference Include="Flowcourier.Umbraco.CookieConsent" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Flowcourier.Umbraco.CookieConsent --version 17.2.0
                    
#r "nuget: Flowcourier.Umbraco.CookieConsent, 17.2.0"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Flowcourier.Umbraco.CookieConsent@17.2.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Flowcourier.Umbraco.CookieConsent&version=17.2.0
                    
Install as a Cake Addin
#tool nuget:?package=Flowcourier.Umbraco.CookieConsent&version=17.2.0
                    
Install as a Cake Tool

Self-hosted cookie consent for Umbraco 17 and 18, with Google Consent Mode v2, consent-gated tracking scripts and labels from the Umbraco Dictionary — all configured in the backoffice.

NuGet Build License: MIT

Consent banner Backoffice settings
Cookie consent banner shown to first-time visitors Settings dashboard in the Umbraco backoffice

Features

  • Drop-in banner — in Auto mode the banner is injected into every HTML page; no template changes needed. Manual mode gives you full control over placement.
  • Consent-gated scripts — paste analytics or marketing snippets into the Scripts dashboard, assign a category, and they only run after the visitor consents.
  • Google Consent Mode v2 — sets consent defaults before your tags load and updates them when the visitor chooses.
  • Categories — necessary, analytics and marketing out of the box (plus an optional preferences category); add your own.
  • Translations — banner and category texts come from the Umbraco Dictionary, so they follow your site's languages.
  • Statistics — accept / reject / custom choices recorded per day, with automatic retention cleanup.
  • No external service — the consent library (orestbida/cookieconsent) and all assets are served by your own site.

Requirements

Umbraco 17 or 18 (minimum 17.4.2)
.NET 10

Getting started

  1. Install the package:

    dotnet add package Flowcourier.Umbraco.CookieConsent
    
  2. Run the site. The package creates its database tables and dictionary items on startup.

  3. In the backoffice, open Settings → Cookie Consent. Choose the integration mode, adjust the appearance, review the categories, and add your tracking scripts under Scripts. Google Consent Mode is off by default — enable it under Settings if you use Google tags.

The backoffice pages require a user with access to the Settings section.

Documentation

More guides are available at flowcourier.com/docs/cookie-consent.

When to use a commercial CMP instead

This package covers self-hosted consent and Google Consent Mode v2 for typical Umbraco sites. Consider a commercial consent management platform if you need IAB TCF support, vendor-managed consent records and audits, or CMP-specific ad-stack integrations.

Contributing

Bug reports, fixes and translations are welcome — see CONTRIBUTING.md. Please report security issues privately as described in SECURITY.md.

License

MIT © Flowcourier. Includes orestbida/cookieconsent (MIT).

Product Compatible and additional computed target framework versions.
.NET net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.