t3dotgg / t3gallery

https://t3gallery.vercel.app
195 stars 31 forks source link

Only reset posthog on logout #1

Open Mezzle opened 2 months ago

Mezzle commented 2 months ago

Previously, it was triggering on any load of the page that has a non-logged-in user, however, this means that the unique identifier for each logged out user gets reset on any reload of the Provider (usually a refresh of the page)

This means that non logged in visitors will create 1 user entry in posthog per session, rather than page visit.

vercel[bot] commented 2 months ago

@Mezzle is attempting to deploy a commit to the t3-oss Team on Vercel.

A member of the Team first needs to authorize it.