Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

npm package: Store posthog as a global variable #18511

Closed
MarconLP opened this issue Nov 9, 2023 · 1 comment
Closed

npm package: Store posthog as a global variable #18511

MarconLP opened this issue Nov 9, 2023 · 1 comment
Labels
enhancement New feature or request feature/toolbar Feature Tag: Toolbar

Comments

@MarconLP
Copy link
Member

MarconLP commented Nov 9, 2023

Is your feature request related to a problem?

When trying to debug client websites that are not using the snippet, I am unable to access posthog through the console. Which is making debugging hard.

Describe the solution you'd like

A way to access posthog through the config. Solutions:

  1. When a window var like POSTHOG_DEBUG is set, we could log out posthog as a variable.
  2. A button in the toolbar that will log out posthog as a variable.
  3. log out posthog as a variable when toolbar is being loaded.

Additional context

https://posthog.slack.com/archives/C04MZFDA5KK/p1699535586640289

Thank you for your feature request – we love each and every one!

@pauldambra
Copy link
Member

there's now at least one way to do this PostHog/posthog-js#1108

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request feature/toolbar Feature Tag: Toolbar
Development

No branches or pull requests

2 participants