Closed mbuechner closed 4 years ago
There's some strange setup of the EU Compliance Cookie which cannot work like that—I don't think that's something I did, anyway: On /admin/config/system/eu-cookie-compliance
, the box to link JavaScript files contains actual JavaScript code, so each line there triggers a request to load a JS file…
The code should instead be in the Matomo module config at /admin/config/system/matomo
(ERWEITERTE EINSTELLUNGEN
> BENUTZERDEFINIERTER JAVASCRIPT-CODE
> Codeausschnitt (vorher)
), but I also doubt the code should be like that. It should just be
if (!Drupal.eu_cookie_compliance.hasAgreed()){
_paq.push(['disableCookies']);
}
Completely disabling tracking when disabling Cookies does not work like it was tried to be configured, and I don't think both concepts should be mixed. And I am not sure it is actually possible because _paq.push(["trackPageView"])
is triggered in any way by the Matomo module, either with a Cookies being set by Matomo or not.
I have removed the code from the EU Cookie Compliance module config. Saving the Matomo config fails on the configured HTTP URLs (https://report-t.codingdavinci.de/
) with
Die Validierung von „http://report-t.codingdavinci.de/matomo.php“ ist mit der Ausnahme „cURL error 28: Connection timed out after 30001 milliseconds (see https://curl.haxx.se/libcurl/c/libcurl-errors.html)“ (HTTP-Code 0) fehlgeschlagen.
Saving the Matomo config fails on the configured HTTP URLs (https://report-t.codingdavinci.de/) with ...
I configured the internal URL http://matomoapp/
(no HTTPS available) and seems to work...!?
I configured the internal URL http://matomoapp/ (no HTTPS available) and seems to work...!?
Nope, that's not the solution. I forwarded the problem to DNB IT...
@mbuechner any news? If there's anything @Snater should do here this weekend is likely one of the last chances...
I was able to add the script to the Matomo module config. Matomo should not set a Cookie now if the Cookie agreement was not agreed to.
@mbuechner problem solved?
It's solved, I think! 👍
After I agreed to accept cookies I am getting these errors at the console. Why?