wxt icon indicating copy to clipboard operation
wxt copied to clipboard

feat(analytics): add Moderok analytics provider

Open VaughnBosu opened this issue 6 months ago • 3 comments

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

VaughnBosu avatar May 22 '26 19:05 VaughnBosu

Deploy Preview for creative-fairy-df92c4 ready!

Name Link
Latest commit 7a2cc8a0ab30f335131d3be1ea985d34b125ca34
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.

netlify avatar May 22 '26 19:05 netlify

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

pkg-pr-new[bot] avatar May 25 '26 13:05 pkg-pr-new[bot]

Codecov Report

:white_check_mark: All modified and coverable lines are covered by tests. :white_check_mark: Project coverage is 78.28%. Comparing base (b567f99) to head (7a2cc8a). :warning: 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     

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

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

codecov[bot] avatar May 25 '26 13:05 codecov[bot]