You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using the JavaScript Web SDK and bundling the posthog dependencies as described in the docs, the popover surveys are not showing up when they should.
The survey is correctly configured in Posthog without any display conditions, and it was also never dismissed by the user (or shown).
As far as I could debug this issue, the problem seems to be that the line
After the above line is executed, the survey popover immediatelly shows up.
If this affects the front-end, screenshots would be of great help.
--
If you are on PostHog Cloud it would be really valuable if you can share any links where the problem occurs. This speeds up our ability to troubleshoot tremendously.
--
How to reproduce
Create popover survey and launch it
Create an frontend application using the bundled posthog as described in the docs.
Call posthog.init passing true to disable_external_dependency_loading
Environment
PostHog Cloud US, project ID: [please provide from https://us.posthog.com/settings/project-details#variables]
PostHog Cloud EU, project ID: [please provide from https://eu.posthog.com/settings/project-details#variables]
PostHog Hobby self-hosted with docker compose, version/commit: [please provide]
Bug description
When using the JavaScript Web SDK and bundling the posthog dependencies as described in the docs, the popover surveys are not showing up when they should.
The survey is correctly configured in Posthog without any display conditions, and it was also never dismissed by the user (or shown).
As far as I could debug this issue, the problem seems to be that the line
posthog-js/src/posthog-surveys.ts
Line 82 in 0b40e5a
surveysGenerator
on lineposthog-js/src/posthog-surveys.ts
Line 73 in 0b40e5a
posthog-js/src/entrypoints/surveys.ts
Line 9 in 864169c
I could workaround the issue by patching the
surveys.instance._surveyManager
variable with:After the above line is executed, the survey popover immediatelly shows up.
If this affects the front-end, screenshots would be of great help.
--
If you are on PostHog Cloud it would be really valuable if you can share any links where the problem occurs. This speeds up our ability to troubleshoot tremendously.
--
How to reproduce
posthog.init
passingtrue
todisable_external_dependency_loading
Environment
docker compose
, version/commit: [please provide]Additional context
We are using posthog in our frontend application built using Nuxt
Thank you for your bug report – we love squashing them!
The text was updated successfully, but these errors were encountered: