Skip to main content

Hello, I am trying to integrate Amplitude into my Chrome Extension (MV3). I am planning to send events from both sidepanel (chrome sidepanel, not a content script), and background script - web worker.

While sidepanel works as expected background script doesn’t have a proper access to cookies.
1. Is there a way to set my own implementation of cookie provider?
2. Maybe current Amplitude Typescript SDK already supports the environment of web workers?

Edit:
I see that typescript SDK has some abstraction like cookie storage, but I am not yet sure how to access / set it.
https://github.com/amplitude/Amplitude-TypeScript/blob/032d7daf06d03f6b2384fc27ae2fc1ab09fdac4f/packages/analytics-browser/src/config.ts#L322

Reply