diff --git a/src/posthog-core.ts b/src/posthog-core.ts index f0dcac900..e9ac1afc5 100644 --- a/src/posthog-core.ts +++ b/src/posthog-core.ts @@ -546,11 +546,13 @@ export class PostHog { this.analyticsDefaultEndpoint = response.analytics.endpoint } - this.config.person_profiles = this._initialPersonProfilesConfig - ? this._initialPersonProfilesConfig - : response['defaultIdentifiedOnly'] - ? 'identified_only' - : 'always' + this.set_config({ + person_profiles: this._initialPersonProfilesConfig + ? this._initialPersonProfilesConfig + : response['defaultIdentifiedOnly'] + ? 'identified_only' + : 'always', + }) this.sessionRecording?.afterDecideResponse(response) this.autocapture?.afterDecideResponse(response)