Download the PHP package docono/cookie-consent-bundle without Composer
On this page you can find all versions of the php package docono/cookie-consent-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download docono/cookie-consent-bundle
More information about docono/cookie-consent-bundle
Files in docono/cookie-consent-bundle
Package cookie-consent-bundle
Short Description cookie consent for pimcore
License GPL-3.0+
Informations about the package cookie-consent-bundle
Docono Cookie Consent
setup
define in the config the consents
include the js:
or
there is also a basic styling if needed
css vars:
consent dialog
Create your consent dialog whatever you like it. Just ensure:
- the main container has the id "dc-consent"
- the "accept essential" button has the id "accept-essential"
- the "accept selected consents" button has the id "accept-selected"
- the name of the checkbox response with the defined consent
JavaScript
To prevent any JavaScript from execution, such as google analytics, use the JS functionality: Set the "data-consent" to the required consent name.
The "src" attribute will be replaced with "data-src". Is the consent given, the script will be loaded.
or
The script "type" attribute value will be replaced with "text/plain", which prevents the script of being executed. If the consent is given, the script tag will be executed.
Youtube
With the youtube helper, you ensure that no call will be made to youtube from the client browser. If the the consent "youtube" is not accepted, a placeholder with a base64 thumbnail will be shown. Is the thumbnail clicked, a consent prompt for that video will be shown.
styling
- container: .dcc-youtube
- play icon: .dcc-youtube__play
- consent prompt: .dcc-youtube__consent
- consent prompt buttons: .consent-youtubedecline, .consent-youtubeaccept
translations
- dcc.youtube.message
- dcc.youtube.decline
- dcc.youtube.accept
or get html tag with
Slots
If you want to show any content only if the consent is accepted, then there are slots
cookie blocker
There is a cookie blocker integrated, which blocks all cookies if the name is not white listed. To block all cookies, the js need to be included inline to ensure it is executes first.
Activate the blocker and register a cookie-namespace with all the cookie names
Bind the cookie-namespace to the consent
There are also predefined cookie-namespaces with all the necessary cookie names:
- matomo
- google-analytics
- google-tag-manager
- google-ad-sense
All versions of cookie-consent-bundle with dependencies
pimcore/pimcore Version ^11.0
guzzlehttp/guzzle Version ^7.7
mpratt/embera Version ~2.0