Skip to content

fix: use site domain for plausible data-domain#886

Merged
jdx merged 1 commit intomainfrom
claude/fix-plausible-domain
Apr 27, 2026
Merged

fix: use site domain for plausible data-domain#886
jdx merged 1 commit intomainfrom
claude/fix-plausible-domain

Conversation

@jdx
Copy link
Copy Markdown
Owner

@jdx jdx commented Apr 27, 2026

Follow-up to #885. The Plausible data-domain attribute was set to a Cloudflare Pages identifier (pa-9rbZ...) instead of the actual site domain. Plausible matches events by the data-domain value, so analytics arent being recorded.

Sets it to hk.jdx.dev to match how the merged mise PR (#9430) does it.

🤖 Generated with Claude Code


Note

Low Risk
Low risk: a one-line docs-site config tweak that only affects analytics attribution and should not impact runtime behavior beyond tracking.

Overview
Updates the VitePress docs analytics script configuration to use the actual site domain (hk.jdx.dev) for the Plausible data-domain attribute instead of the Cloudflare Pages identifier, so pageview events are attributed correctly.

Reviewed by Cursor Bugbot for commit 9e76643. Bugbot is set up for automated code reviews on this repo. Configure here.

Follow-up to #885 — the data-domain attribute must be the site domain
(matches what Plausible has configured), not a Cloudflare Pages token.

Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
@greptile-apps
Copy link
Copy Markdown

greptile-apps Bot commented Apr 27, 2026

Greptile Summary

Changes data-domain in the Plausible analytics script tag from a Cloudflare Pages identifier (pa-9rbZ17iM0rSRarywoulSW) to the actual site domain hk.jdx.dev, which is required for Plausible to correctly attribute analytics events.

Confidence Score: 5/5

Safe to merge — minimal, targeted fix with no logic or security implications.

Single-line config change correcting an analytics attribute value. No logic, no security surface, no side effects beyond enabling correct Plausible event tracking.

No files require special attention.

Important Files Changed

Filename Overview
docs/.vitepress/config.mts Single-line fix: corrects Plausible data-domain from a Cloudflare Pages ID to hk.jdx.dev, consistent with the site domain used in OpenGraph tags elsewhere in the file.

Sequence Diagram

sequenceDiagram
    participant Browser
    participant Plausible
    Browser->>Plausible: pageview event {domain: "hk.jdx.dev"}
    Plausible-->>Browser: 202 Accepted
    Note over Plausible: Event recorded under hk.jdx.dev dashboard
Loading

Reviews (1): Last reviewed commit: "fix: use site domain for plausible data-..." | Re-trigger Greptile

Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request updates the data-domain attribute in the VitePress configuration file from a generic identifier to hk.jdx.dev. There are no review comments to evaluate, and I have no feedback to provide on this change.

@jdx jdx merged commit 0cd7e1a into main Apr 27, 2026
11 checks passed
@jdx jdx deleted the claude/fix-plausible-domain branch April 27, 2026 16:07
@jdx jdx mentioned this pull request Apr 27, 2026
jdx added a commit that referenced this pull request Apr 30, 2026
### 🐛 Bug Fixes

- **(hook)** do not stage fixes when fail_on_fix=true by
[@jdx](https://github.com/jdx) in
[#892](#892)
- use site domain for plausible data-domain by
[@jdx](https://github.com/jdx) in
[#886](#886)
- make text-mode progress output usable in CI by
[@jdx](https://github.com/jdx) in
[#890](#890)

### 📚 Documentation

- prefix GitHub star count with ★ glyph by
[@jdx](https://github.com/jdx) in
[#883](#883)

### 🔍 Other Changes

- **(release)** dedupe sponsor section in release notes by
[@jdx](https://github.com/jdx) in
[#881](#881)
- switch analytics from gtm/goatcounter to plausible by
[@jdx](https://github.com/jdx) in
[#885](#885)
- migrate to namespace.so runners by [@jdx](https://github.com/jdx) in
[#891](#891)

<!-- CURSOR_SUMMARY -->
---

> [!NOTE]
> **Low Risk**
> Low risk release bookkeeping: version bumps, regenerated docs, and
lockfile dependency updates with no functional code changes in this PR.
> 
> **Overview**
> Bumps `hk` to **v1.44.3** and adds the corresponding `CHANGELOG.md`
release entry.
> 
> Regenerates versioned docs/CLI artifacts to reference `1.44.3`
(package URLs and generated `commands.json`/`index.md`) and updates
`Cargo.lock` with dependency resolution changes (notably `jni`,
`rustls*`, `reqwest`, `wasm-bindgen`, and `thiserror` unification).
> 
> <sup>Reviewed by [Cursor Bugbot](https://cursor.com/bugbot) for commit
ab7b72e. Bugbot is set up for automated
code reviews on this repo. Configure
[here](https://www.cursor.com/dashboard/bugbot).</sup>
<!-- /CURSOR_SUMMARY -->

Co-authored-by: mise-en-dev <[email protected]>
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