Problem/Motivation
Currently, we have "posthog_js/init" as a dependency of "posthog_cookies" js. This creates a case, where init.js is loaded, but doesn't have access to the posthog settings, since some conditions in posthog_js_page_attachements don't apply.
We don't want to have this case.
Steps to reproduce
Proposed resolution
Alter the dependency of the init.js and add cookies as a dependency.
Remaining tasks
User interface changes
API changes
Data model changes
Issue fork posthog-3506076
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #3
grevil commentedAll done! Please review!
Comment #4
grevil commentedGood thing I implemented the tests again: "2 elements matching css "script[src*="https://eu-assets.i.posthog.com"]" found on the page, but should be 1"
I'll see what causes this.
Comment #5
grevil commentedAll done! Please review!
Comment #6
anybodyLGTM
Comment #8
anybody