pixellint

vendor/hubspot · vendor template

HubSpot tracking code is {hubId}.js

HubSpot's embed snippet loads js.hs-scripts.com/{hubId}.js. The Hub ID is the path, not a query parameter. Collect fires on track.hubspot.com/__ptq.gif are vendor/hubspot-pixel.

What this pack matches

Hosts
js.hs-scripts.com, js.hs-analytics.net
Paths
….js…
Vendor docs
developers.hubspot.com/docs/api-reference/latest/account/settings/tracking-code/overview

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
hub_id required It is the numeric HubSpot Hub ID. HubSpot's tracking code snippet loads `js.hs-scripts.com/{hubId}.js`. Fix: Copy the embed code from Tracking code settings so the path is `{hubId}.js`. vendor.hubspot.param.hub_id.missing
vendor.hubspot.param.hub_id.empty
vendor.hubspot.param.hub_id.invalid
docs

Validate a payload

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

Try this failing payload in the playground. HubSpot tracking code missing Hub ID.

https://js.hs-scripts.com/.js

cargo install pixellint · npm install pixellint