Only knock out if posthog_init is actually loaded

Created on 12 February 2025, 3 months ago

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

🐛 Bug report
Status

Active

Version

1.0

Component

Code (posthog_cookies)

Created by

🇩🇪Germany Grevil

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024