Skip to main content
TagManifest /Docs Dashboard

Finding tiers

The four-tier system: error, warning, optimization, info. How tiers map to severity and how they feed into the health score.

On this page 4

Every finding carries a tier field that places it in one of four categories: error, warning, optimization, or info. Tiers determine how much a finding deducts from the health score and how findings are sorted in scan responses. Severity is a separate field that indicates degree of impact within a tier.

The four tiers

Error

Reserved for functional breakages and likely regulatory violations. An error means something is actively wrong — PII is being sent without consent gating, a deprecated UA API is still firing, or script is loading over HTTP. Errors receive the heaviest per-finding deduction.

Examples: btoa-pii, datalayer-pii-push, eval-usage, http-script-loading, ga4-pii-parameter-names.

Warning

Findings where the container is not broken but a configuration is likely to cause problems in the near term or under edge-case conditions. Warnings indicate logic that is partially correct but incomplete — for example, an ecommerce tag that fires no data, or a GA4 parameter name that uses a reserved prefix.

Examples: ecommerce-no-send-data, missing-conversion-linker, ga4-event-name-invalid-chars, ga4-ecommerce-missing-params.

Optimization

Findings where the container works but the implementation is inefficient, inconsistent, or likely to create maintainability problems. Optimization-tier deductions use diminishing returns — the first few findings matter more than the tenth. Common patterns include redundant configurations, paused tags left in place, and trigger logic that fires more broadly than intended.

Examples: stale-paused-tags, consent-ad-tags-wrong-type, ecommerce-event-wrong-trigger, ga4-enhanced-measurement-conflict.

Info

Suggestions that carry no score deduction. Most are hygiene and organizational points. Info-tier findings appear in scan responses and reports and take no points off the health score. They surface patterns worth knowing about — like folder structure choices or naming conventions — without penalizing containers that are functionally clean but organizationally informal.

Examples: tags-no-folder, orphaned-triggers, naming-default-names, variable-no-type-prefix.

Severity vs. tier

Tier and severity are distinct fields. Tier is the category; severity is the degree of impact within that category.

FieldValuesPurpose
tiererror, warning, optimization, infoDetermines score deduction and sort order.
severitycritical, high, medium, lowIndicates relative impact within the tier.

A finding can be tier: "warning", severity: "high" — a significant warning — or tier: "error", severity: "medium" — a functional break that only affects a subset of users. The health score uses tier for deduction calculation; severity drives the sort order within a tier.

Findings in scan responses are sorted by tier first (error → warning → optimization → info), then by severity (critical → high → medium → low) within each tier.

Score deductions

Health score deductions are computed from functional-dimension findings only. Hygiene rules contribute to reports but are excluded from deduction math regardless of their tier.

TierPoints per findingMax total deduction
error8 pts each, linear35 pts
warning4 pts each, linear20 pts
optimizationDiminishing returns (log curve)25 pts
info00 pts

The optimization-tier deduction uses a logarithmic formula: Math.floor(8 × Math.log(1 + count)). This means:

Optimization findingsDeduction
15 pts
311 pts
514 pts
1019 pts
2024 pts
22+25 pts (cap)

The cap-per-tier design prevents any single category of problem from driving the score to zero. A container with 10 error-tier findings deducts the full 35 points, not 80. This reflects how audits work in practice: a container can carry multiple errors and still deliver tags correctly for most use cases.

Info tier

Info findings take no points off the health score: deductions.info is always 0. They appear in scan responses and rule-by-rule reports. An info finding from a functional rule is still counted in functionalIssueCount and in deductions.byCategory; ad-conversion-wrong-trigger is such a rule. Naming conventions and organizational hygiene are team-level choices that don't affect tag delivery. Penalizing them would produce lower scores for well-structured containers that use non-standard conventions.

The tier filter on scan_url and scan_container returns one tier at a time: error, warning, optimization or info. It does not separate functional findings from hygiene ones. A hygiene rule can sit in the optimization tier, as stale-paused-tags does, and there is no filter for the functional dimension. To see everything, omit the filter (the default).

Examples

Finding with tier
{
  "rule_id": "btoa-pii",
  "title": "Base64 encoding used for PII (btoa)",
  "severity": "high",
  "tier": "error",
  "category": "pii",
  "finding_count": 1,
  "affected_items": [
    { "id": "31", "name": "Custom HTML - User ID" }
  ],
  "affected_items_total": 1,
  "action": "Replace btoa with SHA-256 hashing",
  "recommendation": "Use proper one-way hashing (SHA-256) instead of btoa() for any PII. Or remove the encoding entirely if the data should not be collected."
}
Health score deductions
{
  "score": 72,
  "grade": "C",
  "label": "Needs Attention",
  "deductions": {
    "error": 8,
    "warning": 8,
    "optimization": 12,
    "info": 0
  },
  "caps": {
    "error": 35,
    "warning": 20,
    "optimization": 25,
    "info": 0
  }
}