Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 4 additions & 18 deletions docs/.vitepress/config.mts
Original file line number Diff line number Diff line change
Expand Up @@ -107,24 +107,10 @@ export default defineConfig({
[
"script",
{
async: "",
src: "https://www.googletagmanager.com/gtag/js?id=G-M7TEP8PKSE",
},
],
[
"script",
{},
`window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'G-M7TEP8PKSE');`,
],
[
"script",
{
"data-goatcounter": "https://jdx-hk.goatcounter.com/count",
async: "",
src: "//gc.zgo.at/count.js",
defer: "",
"data-domain": "pa-9rbZ17iM0rSRarywoulSW",

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 data-domain looks like a token, not a domain name

Standard Plausible Analytics expects data-domain to be the registered site domain (e.g. hk.jdx.dev), not a token-style string like pa-9rbZ17iM0rSRarywoulSW. If the shrill.en.dev proxy is configured to accept this identifier as-is, this is intentional — but if it forwards to a real Plausible instance, analytics events may be silently dropped if the site isn't registered under this value. Is pa-9rbZ17iM0rSRarywoulSW the actual site ID registered in the Plausible instance behind the proxy, or should this be the site's hostname (e.g. hk.jdx.dev)?

Fix in Claude Code

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

high

The data-domain attribute in Plausible typically requires the actual domain name of the site (e.g., hk.jdx.dev) to correctly attribute analytics data in the dashboard. Using a non-domain identifier like pa-9rbZ17iM0rSRarywoulSW may result in events being rejected or misattributed unless your custom proxy at shrill.en.dev is specifically configured to map this ID to the correct domain.

        "data-domain": "hk.jdx.dev",

"data-api": "https://shrill.en.dev/f5f1/event",
src: "https://shrill.en.dev/shrill/script.js",
},
],
// OpenGraph
Expand Down
Loading