Skip to content

feat(analytics): add Moderok analytics provider#2393

Open
VaughnBosu wants to merge 1 commit into
wxt-dev:mainfrom
VaughnBosu:feat/moderok-analytics-provider
Open

feat(analytics): add Moderok analytics provider#2393
VaughnBosu wants to merge 1 commit into
wxt-dev:mainfrom
VaughnBosu:feat/moderok-analytics-provider

Conversation

@VaughnBosu
Copy link
Copy Markdown
Contributor

@VaughnBosu VaughnBosu commented May 22, 2026

Overview

Adds a Moderok provider to @wxt-dev/analytics, alongside GA4 and Umami. Moderok is an analytics platform built specifically for browser extensions.

The one thing I changed outside of adding a new provider is how UUIDs are persisted. When developing Moderok, I found they had to be persisted to storage so that service-worker restarts wouldn't create a new UUID, because that would massively inflate user counts. So I made that fix in this PR.

Manual Testing

I used a test WXT extension and ensured that proper data was showing up in the Moderok dashboard.

Related Issue

Proposed and greenlit in discussion #2388 by @aklinker1

Adds a Moderok provider alongside the existing GA4 and Umami providers. Moderok is an analytics platform built for browser extensions.

Also persists the auto-generated anonymous user id to storage so it stays stable across MV3 service worker restarts — previously a fresh id was created on every restart, inflating user counts for every provider.
@VaughnBosu VaughnBosu requested a review from aklinker1 as a code owner May 22, 2026 19:02
@netlify
Copy link
Copy Markdown

netlify Bot commented May 22, 2026

Deploy Preview for creative-fairy-df92c4 ready!

Name Link
🔨 Latest commit 7a2cc8a
🔍 Latest deploy log https://app.netlify.com/projects/creative-fairy-df92c4/deploys/6a10a8388b30aa000838db6e
😎 Deploy Preview https://deploy-preview-2393--creative-fairy-df92c4.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

@github-actions github-actions Bot added the pkg/analytics Includes changes to the `packages/analytics` directory label May 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pkg/analytics Includes changes to the `packages/analytics` directory

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant