pixellint

vendor/chartbeat · vendor documented

Chartbeat pings need site id h and account UID g

h is the Chartbeat site id, usually the dashboard host. g is the numeric account UID from config.uid. p, d, t, g0, g1, and i are QA ping keys, checked when present. static.chartbeat.com loaders are not this pack.

What this pack matches

Hosts
ping.chartbeat.net
Paths
/ping
Vendor docs
docs.chartbeat.com/cbp/tracking/standard-websites/qa-web-integration

Rules

Codes are stable. A finding in CI, MCP, or the playground lands on the same id.

Field Required What it checks Rule ids Source
h required It is the Chartbeat site id, the host where traffic appears in the dashboard. Chartbeat documents it as the `config.domain` value on the ping. Fix: Set `h` to the site id from the Chartbeat snippet, usually the site's root domain. vendor.chartbeat.param.h.missing
vendor.chartbeat.param.h.empty
docs
g required It is the numeric Chartbeat account UID from `config.uid`. Fix: Set `g` to the numeric uid from the Chartbeat snippet. vendor.chartbeat.param.g.missing
vendor.chartbeat.param.g.empty
vendor.chartbeat.param.g.invalid
docs
p optional It is the page path. Chartbeat documents it as a ping key to check in QA, from `config.path` or the canonical path. Fix: Set `p` to the canonical path Chartbeat should report. vendor.chartbeat.param.p.empty docs
d optional It is the actual domain of the page, which may differ from `h`. Chartbeat documents it as a ping key to check in QA. Fix: Set `d` to the page's domain, or the canonical domain when `useCanonicalDomain` is true. vendor.chartbeat.param.d.empty docs
t optional It is the unique identifier for the page-session. Chartbeat documents each distinct `t` as a separate pageview. Fix: Send a stable page-session id in `t` so successive pings on the same view stay together. vendor.chartbeat.param.t.empty docs
g0 optional It is the comma-delimited list of sections from `config.sections`. Chartbeat documents it as a ping key to check in QA. vendor.chartbeat.param.g0.empty docs
g1 optional It is the comma-delimited list of authors from `config.authors`. Chartbeat documents it as a ping key to check in QA. vendor.chartbeat.param.g1.empty docs
i optional It is the page title. Chartbeat documents it as present on the first ping of a page-session. vendor.chartbeat.param.i.empty docs

Validate a payload

pixellint validate url "$ARTIFACT" --rulepack vendor/chartbeat

Try this failing payload in the playground. Chartbeat ping missing account UID.

https://ping.chartbeat.net/ping?h=example.com&p=/news/article

cargo install pixellint · npm install pixellint