[{"data":1,"prerenderedAt":460},["ShallowReactive",2],{"docs-\u002Ftiers\u002F":3},{"id":4,"title":5,"body":6,"breadcrumb":423,"coderail":430,"dateModified":449,"datePublished":449,"description":450,"extension":451,"meta":452,"navigation":453,"next":449,"path":454,"prev":449,"schemaType":455,"seo":456,"stem":457,"wide":458,"__hash__":459},"docs\u002Ftiers.md","Finding tiers",{"type":7,"value":8,"toc":409},"minimark",[9,39,44,48,54,73,76,79,93,96,99,113,116,119,133,137,140,206,217,220,224,227,284,291,353,356,360,382],[10,11,12,13,17,18,21,22,21,25,28,29,32,33,38],"p",{},"Every finding carries a ",[14,15,16],"code",{},"tier"," field that places it in one of four categories: ",[14,19,20],{},"error",", ",[14,23,24],{},"warning",[14,26,27],{},"optimization",", or ",[14,30,31],{},"info",". Tiers determine how much a finding deducts from the ",[34,35,37],"a",{"href":36},"\u002Fhealth-score\u002F","health score"," and how findings are sorted in scan responses. Severity is a separate field that indicates degree of impact within a tier.",[40,41,43],"h2",{"id":42},"the-four-tiers","The four tiers",[45,46,47],"h3",{"id":20},"Error",[10,49,50,51,53],{},"Reserved for functional breakages and likely regulatory violations. An ",[14,52,20],{}," 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.",[10,55,56,57,21,60,21,63,21,66,21,69,72],{},"Examples: ",[14,58,59],{},"btoa-pii",[14,61,62],{},"datalayer-pii-push",[14,64,65],{},"eval-usage",[14,67,68],{},"http-script-loading",[14,70,71],{},"ga4-pii-parameter-names",".",[45,74,75],{"id":24},"Warning",[10,77,78],{},"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.",[10,80,56,81,21,84,21,87,21,90,72],{},[14,82,83],{},"ecommerce-no-send-data",[14,85,86],{},"missing-conversion-linker",[14,88,89],{},"ga4-event-name-invalid-chars",[14,91,92],{},"ga4-ecommerce-missing-params",[45,94,95],{"id":27},"Optimization",[10,97,98],{},"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.",[10,100,56,101,21,104,21,107,21,110,72],{},[14,102,103],{},"stale-paused-tags",[14,105,106],{},"consent-ad-tags-wrong-type",[14,108,109],{},"ecommerce-event-wrong-trigger",[14,111,112],{},"ga4-enhanced-measurement-conflict",[45,114,115],{"id":31},"Info",[10,117,118],{},"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.",[10,120,56,121,21,124,21,127,21,130,72],{},[14,122,123],{},"tags-no-folder",[14,125,126],{},"orphaned-triggers",[14,128,129],{},"naming-default-names",[14,131,132],{},"variable-no-type-prefix",[40,134,136],{"id":135},"severity-vs-tier","Severity vs. tier",[10,138,139],{},"Tier and severity are distinct fields. Tier is the category; severity is the degree of impact within that category.",[141,142,143,159],"table",{},[144,145,146],"thead",{},[147,148,149,153,156],"tr",{},[150,151,152],"th",{},"Field",[150,154,155],{},"Values",[150,157,158],{},"Purpose",[160,161,162,182],"tbody",{},[147,163,164,169,179],{},[165,166,167],"td",{},[14,168,16],{},[165,170,171,21,173,21,175,21,177],{},[14,172,20],{},[14,174,24],{},[14,176,27],{},[14,178,31],{},[165,180,181],{},"Determines score deduction and sort order.",[147,183,184,189,203],{},[165,185,186],{},[14,187,188],{},"severity",[165,190,191,21,194,21,197,21,200],{},[14,192,193],{},"critical",[14,195,196],{},"high",[14,198,199],{},"medium",[14,201,202],{},"low",[165,204,205],{},"Indicates relative impact within the tier.",[10,207,208,209,212,213,216],{},"A finding can be ",[14,210,211],{},"tier: \"warning\", severity: \"high\""," — a significant warning — or ",[14,214,215],{},"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.",[10,218,219],{},"Findings in scan responses are sorted by tier first (error → warning → optimization → info), then by severity (critical → high → medium → low) within each tier.",[40,221,223],{"id":222},"score-deductions","Score deductions",[10,225,226],{},"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.",[141,228,229,242],{},[144,230,231],{},[147,232,233,236,239],{},[150,234,235],{},"Tier",[150,237,238],{},"Points per finding",[150,240,241],{},"Max total deduction",[160,243,244,254,264,274],{},[147,245,246,248,251],{},[165,247,20],{},[165,249,250],{},"8 pts each, linear",[165,252,253],{},"35 pts",[147,255,256,258,261],{},[165,257,24],{},[165,259,260],{},"4 pts each, linear",[165,262,263],{},"20 pts",[147,265,266,268,271],{},[165,267,27],{},[165,269,270],{},"Diminishing returns (log curve)",[165,272,273],{},"25 pts",[147,275,276,278,281],{},[165,277,31],{},[165,279,280],{},"0",[165,282,283],{},"0 pts",[10,285,286,287,290],{},"The optimization-tier deduction uses a logarithmic formula: ",[14,288,289],{},"Math.floor(8 × Math.log(1 + count))",". This means:",[141,292,293,303],{},[144,294,295],{},[147,296,297,300],{},[150,298,299],{},"Optimization findings",[150,301,302],{},"Deduction",[160,304,305,313,321,329,337,345],{},[147,306,307,310],{},[165,308,309],{},"1",[165,311,312],{},"5 pts",[147,314,315,318],{},[165,316,317],{},"3",[165,319,320],{},"11 pts",[147,322,323,326],{},[165,324,325],{},"5",[165,327,328],{},"14 pts",[147,330,331,334],{},[165,332,333],{},"10",[165,335,336],{},"19 pts",[147,338,339,342],{},[165,340,341],{},"20",[165,343,344],{},"24 pts",[147,346,347,350],{},[165,348,349],{},"22+",[165,351,352],{},"25 pts (cap)",[10,354,355],{},"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.",[40,357,359],{"id":358},"info-tier","Info tier",[10,361,362,363,366,367,369,370,373,374,377,378,381],{},"Info findings take no points off the health score: ",[14,364,365],{},"deductions.info"," is always ",[14,368,280],{},". They appear in scan responses and rule-by-rule reports. An info finding from a functional rule is still counted in ",[14,371,372],{},"functionalIssueCount"," and in ",[14,375,376],{},"deductions.byCategory","; ",[14,379,380],{},"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.",[10,383,384,385,387,388,391,392,395,396,21,398,21,400,402,403,405,406,408],{},"The ",[14,386,16],{}," filter on ",[14,389,390],{},"scan_url"," and ",[14,393,394],{},"scan_container"," returns one tier at a time: ",[14,397,20],{},[14,399,24],{},[14,401,27],{}," or ",[14,404,31],{},". It does not separate functional findings from hygiene ones. A hygiene rule can sit in the optimization tier, as ",[14,407,103],{}," does, and there is no filter for the functional dimension. To see everything, omit the filter (the default).",{"title":410,"searchDepth":411,"depth":411,"links":412},"",2,[413,420,421,422],{"id":42,"depth":411,"text":43,"children":414},[415,417,418,419],{"id":20,"depth":416,"text":47},3,{"id":24,"depth":416,"text":75},{"id":27,"depth":416,"text":95},{"id":31,"depth":416,"text":115},{"id":135,"depth":411,"text":136},{"id":222,"depth":411,"text":223},{"id":358,"depth":411,"text":359},[424,427,429],{"label":425,"href":426},"API Reference","\u002F",{"label":428},"Concepts",{"label":5},{"cards":431,"onpage":444},[432,439],{"title":433,"tabs":434},"Finding with tier",[435],{"label":436,"language":437,"code":438},"JSON","json","{\n  \"rule_id\": \"btoa-pii\",\n  \"title\": \"Base64 encoding used for PII (btoa)\",\n  \"severity\": \"high\",\n  \"tier\": \"error\",\n  \"category\": \"pii\",\n  \"finding_count\": 1,\n  \"affected_items\": [\n    { \"id\": \"31\", \"name\": \"Custom HTML - User ID\" }\n  ],\n  \"affected_items_total\": 1,\n  \"action\": \"Replace btoa with SHA-256 hashing\",\n  \"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.\"\n}\n",{"title":440,"tabs":441},"Health score deductions",[442],{"label":436,"language":437,"code":443},"{\n  \"score\": 72,\n  \"grade\": \"C\",\n  \"label\": \"Needs Attention\",\n  \"deductions\": {\n    \"error\": 8,\n    \"warning\": 8,\n    \"optimization\": 12,\n    \"info\": 0\n  },\n  \"caps\": {\n    \"error\": 35,\n    \"warning\": 20,\n    \"optimization\": 25,\n    \"info\": 0\n  }\n}\n",[445,446,447,448],{"id":42,"label":43},{"id":135,"label":136},{"id":222,"label":223},{"id":358,"label":359},null,"The four-tier system: error, warning, optimization, info. How tiers map to severity and how they feed into the health score.","md",{},true,"\u002Ftiers","TechArticle",{"title":5,"description":450},"tiers",false,"xhy5V4_5eY6jQEiiOEgHEENhzqFCDmGOEwrEB2op8gQ",1796069482560]