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
@pkg-pr-new
Copy link
Copy Markdown

pkg-pr-new Bot commented May 25, 2026

Open in StackBlitz

@wxt-dev/analytics

npm i https://pkg.pr.new/@wxt-dev/analytics@2393

@wxt-dev/auto-icons

npm i https://pkg.pr.new/@wxt-dev/auto-icons@2393

@wxt-dev/browser

npm i https://pkg.pr.new/@wxt-dev/browser@2393

@wxt-dev/i18n

npm i https://pkg.pr.new/@wxt-dev/i18n@2393

@wxt-dev/is-background

npm i https://pkg.pr.new/@wxt-dev/is-background@2393

@wxt-dev/module-react

npm i https://pkg.pr.new/@wxt-dev/module-react@2393

@wxt-dev/module-solid

npm i https://pkg.pr.new/@wxt-dev/module-solid@2393

@wxt-dev/module-svelte

npm i https://pkg.pr.new/@wxt-dev/module-svelte@2393

@wxt-dev/module-vue

npm i https://pkg.pr.new/@wxt-dev/module-vue@2393

@wxt-dev/runner

npm i https://pkg.pr.new/@wxt-dev/runner@2393

@wxt-dev/storage

npm i https://pkg.pr.new/@wxt-dev/storage@2393

@wxt-dev/unocss

npm i https://pkg.pr.new/@wxt-dev/unocss@2393

@wxt-dev/webextension-polyfill

npm i https://pkg.pr.new/@wxt-dev/webextension-polyfill@2393

wxt

npm i https://pkg.pr.new/wxt@2393

commit: 7a2cc8a

@codecov
Copy link
Copy Markdown

codecov Bot commented May 25, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 78.28%. Comparing base (b567f99) to head (7a2cc8a).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2393      +/-   ##
==========================================
- Coverage   78.41%   78.28%   -0.13%     
==========================================
  Files         133      133              
  Lines        3882     3882              
  Branches      875      875              
==========================================
- Hits         3044     3039       -5     
- Misses        750      754       +4     
- Partials       88       89       +1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

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