Skip to content

feat: the analytics plugin - #1

Merged
danielmlr merged 1 commit into
mainfrom
import/analytics
Sep 25, 2026
Merged

danielmlr merged 1 commit into
mainfrom
import/analytics

Conversation

@danielmlr

Copy link
Copy Markdown
Member

Imports the analytics plugin and the workspace around it as fresh files, without the history of the private proof-of-concept repository.

What is in it

  • packages/analytics — @eisbachcode/emdash-plugin-analytics: Cloudflare Web Analytics on the EmDash dashboard and next to the content. Dashboard widget, Analytics page with a setup check, per-entry numbers over 7 and 30 days with totals across translations, an Analytics panel in the entry editor, demo data. English and German. See its README.
  • packages/shared — internal helpers, never published; the plugin build inlines them.
  • scripts/compat-matrix.sh and its workflow — the suites against the EmDash versions in the declared range (gating) and against the current release (informational).
  • Changesets for versioning. No release workflow yet: npm trusted publishing can only be configured once the package exists, so the first publish is manual and the workflow follows.

Verified

  • 288 plugin tests and 13 shared tests, typecheck, build, emdash-plugin validate.
  • Compat matrix in a committed copy: 288 passing on EmDash 0.39.0 (baseline), 0.39.1 and 0.40.0.
  • gitleaks over every file in this PR: no findings.
  • Runs in production on eisbachcode.de (in-process) and on a sandboxed copy of it.

@eisbachcode/emdash-plugin-analytics brings Cloudflare Web Analytics
into EmDash and joins it to the content: a dashboard widget, an
Analytics page with a setup check, per-entry numbers over 7 and 30 days
with totals across translations, and a panel in the entry editor. It
runs in-process or sandboxed within EmDash's ten-call budget per
invocation, and reads English and German.

The workspace brings the internal shared helpers, a compat matrix that
runs the suites against other EmDash releases, and changesets for
versioning. Requires EmDash 0.39.0 or later; tested on 0.39.0, 0.39.1
and 0.40.0.
@danielmlr
danielmlr merged commit 05b9bd1 into main Sep 25, 2026
2 checks passed
@danielmlr
danielmlr deleted the import/analytics branch September 25, 2026 11:09
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

Successfully merging this pull request may close these issues.

1 participant