Add PostHog consent integration and extract integration plugin system
Add PostHog opt-in/opt-out consent support mirroring the existing Google Consent Mode integration: database column, GraphQL field, console UI toggle, and client-side posthog-js calls. Extract both GCM and PostHog logic from CookieBannerClient into a ConsentIntegration plugin interface so future integrations can be added without modifying the client core. Signed-off-by: Émile Ré <emile@getprobo.com>
This commit is contained in:
@@ -55,6 +55,7 @@ type (
|
||||
Kind CookieCategoryKind `json:"kind"`
|
||||
Cookies CookieItems `json:"cookies"`
|
||||
GCMConsentTypes []string `json:"gcm_consent_types"`
|
||||
PostHogConsent bool `json:"posthog_consent"`
|
||||
}
|
||||
|
||||
CookieBannerVersion struct {
|
||||
|
||||
Reference in New Issue
Block a user