websedit / we_cookie_consent Goto Github PK
View Code? Open in Web Editor NEWCookie Consent Panel (Optin) with DSGVO/GDPR compliant use of cookies for TYPO3. Based on Klaro!.
Cookie Consent Panel (Optin) with DSGVO/GDPR compliant use of cookies for TYPO3. Based on Klaro!.
In Configuration/TypoScript/setup.ts file 109 throw the Error "Expression could not be parsed".
Possible Solution:
Uncomment Line 108 and comment out Line 109.
Hi hi,
I'm using your extension EXT:we_cookie_consent in a few TYPO3 projects for my clients and I wanted to say thank you, first of all, for it! It's quite well documented and easy to set it up.
Additionally, I wanted to ask you a few questions which are not completely clear to me reading the docs:
A) What's the difference between the "Google Analytics [google-analytics]" & "Google Analytics Universal [google-analytics-universal]" services shipped with the extension? Could this be further explained in the official documentation e.g. https://consent.websedit.de/fileadmin/consent/daten/dokumentation-we_cookie_consent-en-v2.0-20210621.pdf[](https://consent.websedit.de/datenschutz#c222) Just configuring one of them as a BE record in the "Cookie consent" folder would be enough?
B) Taking into account I created a "Google Analytics [google-analytics]" service record in the BE for one of my clients, it is clear to me I should add the cookie "_ga" cookie over "Cookies" tab. But do I also need to add the specific cookie related to my Google account e.g. "_ga_ABCDEFG"? I would personally add it, as this is a cookie which is set when the cookie consent is accepted, but I see you don't list it, for example, under your website data privacy's page https://consent.websedit.de/datenschutz#c222[](https://consent.websedit.de/fileadmin/consent/daten/dokumentation-we_cookie_consent-en-v2.0-20210621.pdf) . I'm a bit confused.
C) From the other side, if we save under the cookie "klaro" (by default) the user preferences for the rest of the cookies, shouldn't we add the cookie itself listed in the plugin, as mandatory? Or there's no need for that according to data protection law?
D) I got another project where the client used Google Tag Manager. Reading section 4.2. from the official documentation https://consent.websedit.de/fileadmin/consent/daten/dokumentation-we_cookie_consent-en-v2.0-20210621.pdf it is not clear to me if I should COMPLETELY follow the steps described in the sections 4.2.1, 4.2.2, 4.2.3, 4.2.4 & 4.2.5 (which is empty, by the way) or just covering one section is enough.
E) What's the difference between "Google Tag Manager [google-tagmanager]" & "Google Tag Manager - Service [google-tagmanager-service]"?
A trim around the service description could be useful. If the description somehow starts with a linebreak after stripping the tags, the generated output is not valid json and therefore throws an error.
When enabling/disabling a service from the list view (not editing the service record), I receive the following warning:
Undefined array key "provider" in /var/www/html/vendor/websedit/we-cookie-consent/Classes/Hook/AfterSaveHook.php line 12
I guess there just needs a check to be added if this array key exists (or nullsafe operator).
PHP: 8.3
TYPO3: 12.4.16
Thanks for this extension ๐
Hi,
awesome extension, thx. I just have a problem with the EN version of it as the [privacyPage] placeholder won't be resolved. In the German version it is and shows text and link to proper page. In the locallang.xlf the placeholder was not included, I put it there as I need the link in the banner.
regards
Florian
From version 1.2.1 I'm unable to update the extension to higher versions.
Switching to version 1.3 I get a 500 error on the site, switching to 2.x I get this error:
The class "Websedit\WeCookieConsent\Resource\Rendering\YouTubeRenderer" you are trying to register is not available.
At each update attempt the typo3temp/autoload folder was emptied and all caches cleared.
When a service/provider description containers special characters the app is not pushed to the cookie popup. Javascript breaks on:
description: '<f:format.stripTags>{service.description}</f:format.stripTags>' in /Resources/Private/Partials/Klaro/App.html
Attached is a patch proposal to fix this. To the best of my knowledge such a viewhelper does not exist. Because the description is used in diffrent views maby its best to fix the formatting on repo level. Just always return html encoded content so you know how to parse it in the app.
Patchfile attached
Is a version for TYPO3 v12 to be expected in the near future?
Extension not compatible with Typo3 11. The solution would be to change line 90 in ConsentController.php in the renderAssetsForRequest method to check for instance of AbstractTemplateView instead of TemplateView
Hi,
awesome extension, thx. I just have a problem with the EN version of it as the [privacyPage] placeholder won't be resolved. In the German version it is and shows text and link to proper page. In the locallang.xlf the placeholder was not included, I put it there as I need the link in the banner.
regards
Florian
According to official documentation (see https://docs.typo3.org/m/typo3/reference-coreapi/main/en-us/ExtensionArchitecture/FilesAndLocations/Index.html#reserved-file-names), extension icon should be under Resources/Public/Icons/Extension.svg.
Would you mind moving it to that location, instead of the root of extension /ext_icon.svg?
We're using helhum/typo3-secure-web composer package, to use public resources under public/ and private code under private/ and the fact that the icon is not under Resources/Public/Icons makes it not reachable in the Extension Manager.
Until the user has given his consent for GTM the window.dataLayer in ConsentController.js line 111 ("window.dataLayer.push(tempObj);") is undefined. When I uncomment "window.dataLayer.push(tempObj);" in line 71, it works.
The latest klaro version uses resetConsents
instead of resetConsent
as a function name.
Please update to latest version and change the function call in ConsentController.js #99
Thanks
There is a klaro-no-css.js JS file available, which is useful for people who want to style the consent on their own.
Please include the no-css version in the extension as well and provide a setting to use this file.
https://github.com/kiprotect/klaro/blob/master/dist/klaro-no-css.js
In a multilanguage environment we localized some consent records. But only on localized pages the localized records are shown. On not localized pages (with fallback to default language) the consent records also fall to the default language. But we always want to show the consent records in the language choosen by the visitor. Is this a bug or did I missed some configuration?
Good evening,
It is not very clear to me reading the official documentation https://consent.websedit.de/fileadmin/consent/daten/dokumentation-we_cookie_consent-en-v1.3.3-20201007.pdf what should be made to avoid the cookies for Google Analytics to be loaded before the cookie consent to be accepted.
I'm using latest version 1.3.3 for the extension and:
However, I'm not sure which checkboxes should be clicked under "Settings" tab, and I'm not sure which "api_key" should be provided.
Just to notice, this is the code I'm providing to my website: https://developers.google.com/analytics/devguides/collection/ga4
Could you help me with this issue?
Hi,
I wanted to know whether it is possible to apply the contextual consent on other iframes besides Vimeo and YouTube. To be specific on Google Maps iframes. However there is no option for Google Maps in the provider dropdown.
How could I go about applying the contextual consent on those iframes?
Full disclosure:I'm not adept at coding. I'm familiar with HTML & CSS at most, as I am not a developer.
Thank you
Prepare for TYPO3 v13
(Merge request will come soon)
Not a real Issue.
Is it possible to create a google consent mode v2 ?
I can not find info about that.
Seems that many users use services such as cookiebot etc.
Can anyone point me out ?
Hello we use your extension in TYPO3 version 12 and get the following error in the cookie list output:
PHP Warning: Undefined array key "klaro" in .../typo3conf/ext/we_cookie_consent/Classes/Controller/ConsentController.php line 135
Are there any approaches where the problem could lie?
Furthermore, we have used the extension in a TYPO3 version 10.4. and we have noticed an error where categories with umlauts cause an error. The array "$klaroConfig" contains an error due to an umlaut and cannot be encoded.
Typo3 uses the nocookie url from youtube for embedded youtube videos, and should never set cookies. Because of this, the data-src for the iframe would actually be unnecessary?
I have the problem that I have a multipage setting and i use we_cookie_consent only for one of the pages, but videos would not be displayed on any of the other pages either.
You still use the deprecated dot notation in the extension name for "VENDOR.EXT_NAME"
This changes in Typo3 11
Error handler (BE): TYPO3 Deprecation Notice: Calling method TYPO3\CMS\Extbase\Utility\ExtensionUtility::configurePlugin with argument $extensionName ("WE.WeCookieConsent") containing the vendor name ("WE") is deprecated and will stop working in TYPO3 11.0. in /html/production/typo3_src-10.4.10/typo3/sysext/extbase/Classes/Utility/ExtensionUtility.php line 63
I am using typo3 version 11.5 and extension version 4.0.4. I want to changed poweredBy
label and for this i am using below typoscript.
plugin.tx_wecookieconsent_pi1 {
_LOCAL_LANG {
default {
klaro.poweredBy = Bereitgestellt von Ihrer Firma
}
de {
klaro.poweredBy = Bereitgestellt von Ihrer Firma
}
}
}
But it's not working. can you help me out here? how can i changed this labels?
We have a service defined and added the Google ID sometime later after initial record creation. Now the following line throws an exception, because the provider hasn't changed and therefore has no value in $fieldArray
it seems.
We only use the Google Tag Manager (record type "google-tagmanager") without GTM services (record type "google-tagmanager-service"), because all conversion trackings are configured inside GTM. Nevertheless we need to set the consent mode options (ad_storage, analytics_storage, ad_user_data, ad_personalization...). But these options are missing in the consent record "google-tagmanager". Can you provide these also for this record type?
Regards
Michael
Hello, is there a way to integrate YouTube videos into the consent manager, so that the consent can also be revoked if necessary?
In the latest TER release (1.3.0) the folders Classes, Configuration and Resources are empty.
The javascript files ConsentController.js and klaro.js are both part of the HTML without any version reference.
Changes in these files will not apply for visitors of the website with an earlier version which is cached by the browser, till the visitor clears the browser cache. By upgrading from 1.3 to 2.0 this gave us lot of troubles.
Possible fixes are: make the version of the extension part of the javascript URL, for example:
<script src="/Javascript/Controller/ConsentController.js?v=2.0.0"></script>
When a new version of the extension is released, the browser will automaticly download the script from the server instead of using the browser cache.
But maybe better: use the Typo3 PageRenderer to inject javascript files so typo3 can handle the files and eventually combine/merge the javascript with other scripts.
Hello, thanks for your nice extension!
My request: Please provide the SASS source files (if existing) for easier style adaptions.
Karionis
As we are not using jQuery by default, we get immediate errors in the console.
Since jQuery is used for simple things in the ConsentController, I'd like to convert it to plain JS.
In both documentations (de + en) for version 1.3.x (others not checked) there is no mention at all, that the categories tab has to be used and something selected which configures the purpose property of Klaro. If no category is selected, no purpose is set in the Klaro app config and nothing will be displayed inside the modal to modify the settings.
It took me quite long to figure this out. Maybe add this to the documentation could help others too.
Variables like $path-to-ext
should be overridable from the outside.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.