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

Support for Web Extension Service Workers #907

Open
kyranjamie opened this issue Jul 19, 2023 · 3 comments
Open

Support for Web Extension Service Workers #907

kyranjamie opened this issue Jul 19, 2023 · 3 comments

Comments

@kyranjamie
Copy link

We've just upgraded our Chrome extensions to MV3 and are unable to collect analytics in our background script (service worker).

Are there any workarounds for this? I see Partytown mentioned but we're not using this tool and believe there must be a simpler solution.

Currently, the library internally writes the anon id to localStorage. This presumes the environment. Ideally, the AnalyticsBrowser could accept some kind of storage API with a getItem, setItem, removeItem API? This way we could pass it the chrome.storage.local object.

Something like:

new AnalyticsBrowser({
  storage: chrome.storage.local
})
@jonandgon
Copy link

Is there any movement on this? The lack of support for chrome extensions is make/break for us.

@kyranjamie
Copy link
Author

Chasing this. We have a huge gap in our extension's analytics currently owing to this issue.

@markmhendrickson
Copy link

+1 this is sorely needed

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

No branches or pull requests

3 participants