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

Prevented unnecessary analytics events on initialization #3784

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

hyphenized
Copy link
Collaborator

@hyphenized hyphenized commented Feb 19, 2025

This prevents dispatching a "Analytics Toggled" event during initialization of analytics preferences by checking if the setting has been changed before dispatching updates/events.

To Test

  • Open up service worker inspector and check posthog requests
  • Reload the extension, there should not be another posthog request unless analytics settings are updated

Latest build: extension-builds-3784 (as of Wed, 19 Feb 2025 20:55:43 GMT).

Now checks if the setting changed before dispatching updates/events
@hyphenized hyphenized self-assigned this Feb 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant