Skip to content

Commit

Permalink
use set_config
Browse files Browse the repository at this point in the history
  • Loading branch information
raquelmsmith committed Oct 15, 2024
1 parent bf232be commit 745e594
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions src/posthog-core.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 745e594

Please sign in to comment.