Closed (fixed)
Project:
COOKiES Consent Management
Version:
1.2.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
13 Apr 2022 at 08:49 UTC
Updated:
6 Nov 2024 at 15:29 UTC
Jump to comment: Most recent
Comments
Comment #2
kaszarobertComment #4
jfeltkampFixed error in 1.0.x
Will be available >= 1.0.19
Comment #5
anybodyHi @JFeltkamp,
I just ran into this and can confirm it's broken with facebook_pixel in latest stable: 1.0.18
As this is critical for GDPR, I'm setting the priority to "Major". Confirming RTBC after it's fixed now with latest dev. Will set this Fixed afterwards, but it would be very good, if you could create a new stable release soon to fix this.
Comment #6
anybodySetting this fixed, as it was already committed to dev.
Comment #7
anybodyI sadly have to reopen this, as the blocking now works correctly for facebook_pixel, but the tracking does not work anymore. The code is not called due to the implementation in facebook_pixel:
When cookies adds the .js file the "attach" process has already been executed before. So we'll have to trigger it from cookies, I guess?
Comment #8
anybodyFollow-up: #3302080: Discontinue support for officialfacebookpixel module & write tests
Comment #9
anybodyFurthermore, the module path should be determined dynamically, as the path is not clear (might be without "contrib" for example.
That was implemented a bit hacky ;)
Comment #11
anybodyComment #13
anybodyFixed!
Next should be the follow-up with tests: #3302080: Discontinue support for officialfacebookpixel module & write tests
Comment #14
anybodyNow we have a timing issue as the script isn't always loaded when the attach() is called. As I found no really good and quick solution, I used setTimeout() which is really bad, but better than nothing... setting back to NW so.
We're now in the situation that blocking works fine again, but in worst case, the script is not executed. That should be better than before and if we can't find a cleaner solution soon, we should create a new stable release, as I still think broken blocking is dangerous. For the 1.0.19 release and feedback I'll assign JFeltkamp as original maintainer.
PS: Sorry I forget to mention this issue in the commit messsage -.-
Comment #15
anybodyComment #16
anybodyOk that works as expected so far, but isn't really cool. Setting priority back to normal.
Comment #17
jfeltkampOkay, in so far the workaround is in 1.0.x and does what is expected, we should continue with deployment of next release.
We should leave this open and find a lean callback for the initTracking function.
Comment #18
anybodyComment #19
anybodyComment #20
schoenef commentedHello,
we have a connected issue with cookies (1.1.0) + facebook_pixel (2.0.0-rc3). It all works well, on environments without js aggregation, but if we enable js aggregation (as it is currently on our production environment) then the facebook_pixel js is already part of the combined js file and always executed, no matter if the consent was given or not.
Unfortunately my knowledge of drupal is not deep enough to know how to get around this - maybe the cookies_facebook_pixel can override the facebook_pixel libraries, so that they are not part of the initial aggregation? It's also possible we are simply overlooking something here?
Your help is much appreciated in this matter.
Comment #21
schoenef commentedHi Guys, so it was a false alarm - in the latest version of the plugins it is working as expected.
Best wishes
Andreas
Comment #22
anybodyComment #23
anybodyas of #21