Comments (5)
HI @derBoogie,
how do you mean this exactly?
The event will only be triggered on load if a consent cookie already exists.
Otherwise the the event will be triggered after the user submits the consent in the modal form.
You may also have a look into the official documentation.
Greetings
Daniel
from mindshape_cookie_consent.
Hi Daniel,
in my cookie-consent.js, which is loaded on every page I have:
$(document).ready(function() {
window.googleAnalyticsLoaded = false;
window.addEventListener('cookieConsent', function (event)
{
if (event.detail.hasOption('google_analytics'))
{
if (false === window.window.googleAnalyticsLoaded)
{
window.googleAnalyticsLoaded = true;
console.log('Load Google Analyitcs');
}
}
});
});
In console I can see "Load Google Analyitcs" if I accept the google_analtics cookie (check checkbox and save), which works fine.
But when I continue surfing the page, "Load Google Analyitcs" is not displayed in the console. I.e. on load the cookie_consent event is not fired.
Here you can see the value of cookie "cookie_consent":
Greetings
TJ
from mindshape_cookie_consent.
Hi @derBoogie,
You have to implement the explicit loading of analytics or other tools by yourself, the extension just offers you the consent mechanics, analytics ist just meant as an example in the documentation.
You may want to have a look at an concrete example, this loads Google Analytics Universal if the user consented to.
Greetings
Daniel
from mindshape_cookie_consent.
Hi Daniel,
thanks for your quick reply.
I've already implemented an own solution for the "on load mechanism" of cookies which are allowed by th user.
That means, which are stored in the cookie_consent cookie.
In my opinion this should be part of your extension, because It's an essential feature.
Greetings
TJ
from mindshape_cookie_consent.
Hi @derBoogie,
the mechanism is already there, I don't know why you did your own, see the link to the example I posted earlier.
The extension doesn't automaticely block any scripts or something, it provides the functionality to load your analytics (google, matomo or whatever) only if the user consented.
Greetings
Daniel
from mindshape_cookie_consent.
Related Issues (20)
- Google Consent Mode [Feature Request] HOT 2
- PHP Warnings. HOT 2
- Add script bug HOT 2
- Path of javascript and stylesheets is incorrect when used with TYPO3 11 HOT 1
- TYPO3 12.4 Compatible Version HOT 1
- PHP 8.2 compatibility HOT 3
- Statistics - selected time period throws exeption HOT 4
- TYPO3 Exception: syntax error, unexpected ')' HOT 4
- Error: Return value of Mindshape\MindshapeCookieConsent\Utility\CookieUtility::getCookieValue() must be of the type array or null, bool returned HOT 6
- Error in Log: Core: Exception handler (WEB): Uncaught TYPO3 Exception: Mindshape\MindshapeCookieConsent\Service\CookieConsentService::__construct(): Argument #2 ($configurationRepository) must be of type Mindshape\MindshapeCookieConsent\Domain\Repository\ConfigurationRepository HOT 4
- Plugin prevents Caching HOT 7
- Missing neccessary cookies in "Cookie List" HOT 2
- TypeError in List View, TYPO3 12.4.9 HOT 8
- TYPO3 12 CSP settings HOT 4
- PHP Warning: Undefined array key "site" in `Classes/UserFunc/ConfigurationTcaUserFunc.php` line 46 with TYPO3 12.4.10 HOT 11
- Cannot add override labels with new language HOT 2
- Problem with current PHP 8.3.2 version HOT 6
- Disable Plugin for new site with root directory... HOT 1
- Error on Statistics View 2 HOT 2
- Error: Typed property ...Configuration::$cookieCategories must not be accessed before initialization HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mindshape_cookie_consent.