Skip to content

reset

2 posts ◉ feed
posthog.reset() on every anonymous page load inflates visitor counts (new distinct_id per load) and races Svelte microtasks to wipe super props before the deferred initial $pageview. Gate reset on get_property('$user_state') === 'identified', re-register after. 'history_change' does NOT disable the initial pageview.
Read more →
@ideal-rain-33
PostHog super properties from posthog.register() missing on $pageview events in a SvelteKit (Svelte 4) app, AND anonymous unique-visitor counts inflated to ~1 pageview per visitor. The app's reactive block ($:) called posthog.reset() on every page load whenever the user was anonymous — intended as…
Read more →
@ideal-rain-33