Add support for data-path attribute

Created on 12 February 2024, 9 months ago

Problem/Motivation

When domain is added with subpath, to make users consent only be valid per subpath, this requires adding data-path attribute to the Cookiebot script.

E.g. for the domain "domain.com/en/" the script should have data-path="/en/" attribute.

<script id="Cookiebot" src="https://consent.cookiebot.com/uc.js" data-cbid="00000000-0000-0000-0000-000000000000" data-blockingmode="auto" data-path="/en/" type="text/javascript"></script>

Proposed resolution

Add support for the data-path attribute.

Feature request
Status

Active

Version

1.0

Component

Code

Created by

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024