[{"data":1,"prerenderedAt":403},["ShallowReactive",2],{"rule-hardcoded-conversion-values":3},{"id":4,"title":5,"body":6,"breadcrumb":366,"coderail":373,"dateModified":392,"datePublished":392,"description":393,"extension":394,"meta":395,"navigation":396,"next":392,"path":397,"prev":392,"schemaType":398,"seo":399,"stem":400,"wide":401,"__hash__":402},"docs\u002Frules\u002Fhardcoded-conversion-values.md","Hardcoded conversion values in ad tags",{"type":7,"value":8,"toc":358},"minimark",[9,16,54,59,85,89,106,110,229,233,265,269,326,330,354],[10,11,12],"p",{},[13,14,15],"strong",{},"Summary",[17,18,19,30,36,42,48],"ul",{},[20,21,22,25,26],"li",{},[13,23,24],{},"rule_id"," — ",[27,28,29],"code",{},"hardcoded-conversion-values",[20,31,32,35],{},[13,33,34],{},"purpose"," — Detect ad conversion tags that report a static value instead of the actual transaction amount",[20,37,38,41],{},[13,39,40],{},"effect"," — Every conversion reports the same hardcoded figure, corrupting revenue-based bid optimization",[20,43,44,47],{},[13,45,46],{},"layer"," — container",[20,49,50,53],{},[13,51,52],{},"reversibility"," — non-destructive",[55,56,58],"h2",{"id":57},"what-fires-this","What fires this",[10,60,61,62,65,66,69,70,73,74,77,78,81,82,84],{},"The rule checks all active tags with type ",[27,63,64],{},"awct"," (Google Ads Conversion Tracking) or ",[27,67,68],{},"baut"," (Microsoft UET). For each matching tag, it reads ",[27,71,72],{},"parameters.conversionValue"," or ",[27,75,76],{},"parameters.revenue"," and checks whether the value starts with ",[27,79,80],{},"{{",". A value that does not start with ",[27,83,80],{}," is not a GTM variable reference — it is a literal. Tags with a non-empty literal conversion value are flagged, and the hardcoded value is included in the issue payload. Paused tags are excluded.",[55,86,88],{"id":87},"why-it-matters","Why it matters",[10,90,91,92,73,95,98,99,73,102,105],{},"When ",[27,93,94],{},"conversionValue",[27,96,97],{},"revenue"," is a hardcoded number (e.g., ",[27,100,101],{},"1",[27,103,104],{},"100","), every conversion reports that same figure to the ad platform — regardless of actual transaction amount. Revenue-based bid strategies (Target ROAS, Maximize Conversion Value) optimize against fabricated data. Ad platform revenue reporting becomes unreliable for budgeting and ROI. The fix is a one-field change in the tag; the data integrity gain is immediate.",[55,107,109],{"id":108},"example","Before \u002F after",[111,112,113,184],"compare",{},[114,115,117],"compare-col",{"label":116},"Before — flagged",[118,119,124],"pre",{"className":120,"code":121,"language":122,"meta":123,"style":123},"language-json shiki shiki-themes github-light github-dark","{\n  \"type\": \"awct\",\n  \"parameters\": {\n    \"conversionValue\": \"1\"\n  }\n}\n","json","",[27,125,126,135,152,161,172,178],{"__ignoreMap":123},[127,128,131],"span",{"class":129,"line":130},"line",1,[127,132,134],{"class":133},"sVt8B","{\n",[127,136,138,142,145,149],{"class":129,"line":137},2,[127,139,141],{"class":140},"sj4cs","  \"type\"",[127,143,144],{"class":133},": ",[127,146,148],{"class":147},"sZZnC","\"awct\"",[127,150,151],{"class":133},",\n",[127,153,155,158],{"class":129,"line":154},3,[127,156,157],{"class":140},"  \"parameters\"",[127,159,160],{"class":133},": {\n",[127,162,164,167,169],{"class":129,"line":163},4,[127,165,166],{"class":140},"    \"conversionValue\"",[127,168,144],{"class":133},[127,170,171],{"class":147},"\"1\"\n",[127,173,175],{"class":129,"line":174},5,[127,176,177],{"class":133},"  }\n",[127,179,181],{"class":129,"line":180},6,[127,182,183],{"class":133},"}\n",[114,185,187],{"label":186},"After — fixed",[118,188,190],{"className":120,"code":189,"language":122,"meta":123,"style":123},"{\n  \"type\": \"awct\",\n  \"parameters\": {\n    \"conversionValue\": \"{{dlv - transaction.value}}\"\n  }\n}\n",[27,191,192,196,206,212,221,225],{"__ignoreMap":123},[127,193,194],{"class":129,"line":130},[127,195,134],{"class":133},[127,197,198,200,202,204],{"class":129,"line":137},[127,199,141],{"class":140},[127,201,144],{"class":133},[127,203,148],{"class":147},[127,205,151],{"class":133},[127,207,208,210],{"class":129,"line":154},[127,209,157],{"class":140},[127,211,160],{"class":133},[127,213,214,216,218],{"class":129,"line":163},[127,215,166],{"class":140},[127,217,144],{"class":133},[127,219,220],{"class":147},"\"{{dlv - transaction.value}}\"\n",[127,222,223],{"class":129,"line":174},[127,224,177],{"class":133},[127,226,227],{"class":129,"line":180},[127,228,183],{"class":133},[55,230,232],{"id":231},"remediation","Remediation",[234,235,236,239,250,253,259,262],"ol",{},[20,237,238],{},"Open each flagged tag in GTM and note the hardcoded value in the conversion value field.",[20,240,241,242,245,246,249],{},"Identify the dataLayer key that holds the actual transaction amount (e.g., ",[27,243,244],{},"ecommerce.value",", ",[27,247,248],{},"transaction.revenue",").",[20,251,252],{},"Create a Data Layer Variable for that key if one does not already exist.",[20,254,255,256,249],{},"Replace the hardcoded value with the variable reference (e.g., ",[27,257,258],{},"{{dlv - transaction.value}}",[20,260,261],{},"Confirm the currency field is also dynamic — hardcoded currency causes the same reporting problem.",[20,263,264],{},"Test in GTM Preview mode with a completed conversion and verify the variable resolves correctly.",[55,266,268],{"id":267},"metadata","Metadata",[270,271,274,275,280,274,284,288,274,291,295,274,298,301,274,304,308,274,310,314,274,320,323],"dl",{"className":272},[273],"spec-list","\n  ",[276,277,279],"dt",{"id":278},"severity","Severity",[281,282,283],"dd",{},"low",[276,285,287],{"id":286},"tier","Tier",[281,289,290],{},"info",[276,292,294],{"id":293},"category","Category",[281,296,297],{},"ads",[276,299,300],{"id":46},"Layer",[281,302,303],{},"container",[276,305,307],{"id":306},"version","Version",[281,309,101],{},[276,311,313],{"id":312},"effort","Effort",[281,315,316,319],{},[27,317,318],{},"15min"," (about 15 minutes)",[276,321,322],{"id":52},"Reversibility",[281,324,325],{},"non-destructive",[55,327,329],{"id":328},"see-also","See also",[17,331,332,340,347],{},[20,333,334,339],{},[335,336,338],"a",{"href":337},"\u002Fcategories\u002Fads\u002F","Ads rules"," — other rules in this category",[20,341,342,346],{},[335,343,345],{"href":344},"\u002Fhealth-score\u002F","Health score"," — how this rule contributes to the score",[20,348,349,353],{},[335,350,352],{"href":351},"\u002Frules\u002F","Rules catalog"," — browse all rules",[355,356,357],"style",{},"html pre.shiki code .sVt8B, html code.shiki .sVt8B{--shiki-default:#24292E;--shiki-dark:#E1E4E8}html pre.shiki code .sj4cs, html code.shiki .sj4cs{--shiki-default:#005CC5;--shiki-dark:#79B8FF}html pre.shiki code .sZZnC, html code.shiki .sZZnC{--shiki-default:#032F62;--shiki-dark:#9ECBFF}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}",{"title":123,"searchDepth":137,"depth":137,"links":359},[360,361,362,363,364,365],{"id":57,"depth":137,"text":58},{"id":87,"depth":137,"text":88},{"id":108,"depth":137,"text":109},{"id":231,"depth":137,"text":232},{"id":267,"depth":137,"text":268},{"id":328,"depth":137,"text":329},[367,370,372],{"label":368,"href":369},"API Reference","\u002F",{"label":371,"href":351},"Rules",{"label":29},{"cards":374,"onpage":386},[375],{"title":376,"tabs":377},"Evaluate",[378,382],{"label":379,"language":380,"code":381},"cURL","bash","curl https:\u002F\u002Fdeveloper.tagmanifest.com\u002Fv1\u002Fevaluate-rule \\\n  -H \"Authorization: Bearer $TM_API_KEY\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\"rule_id\":\"hardcoded-conversion-values\",\"url\":\"https:\u002F\u002Fexample.com\"}'\n",{"label":383,"language":384,"code":385},"MCP","text","User: Run hardcoded-conversion-values on https:\u002F\u002Fexample.com\n\n# Tool call\n{\n  \"tool\": \"evaluate_rule\",\n  \"arguments\": {\n    \"rule_id\": \"hardcoded-conversion-values\",\n    \"url\": \"https:\u002F\u002Fexample.com\"\n  }\n}\n",[387,388,389,390,391],{"id":57,"label":58},{"id":87,"label":88},{"id":108,"label":109},{"id":231,"label":232},{"id":267,"label":268},null,"Conversion tags use hardcoded values instead of dynamic values from the dataLayer. This means every conversion reports the same value regardless of actual transaction amount.","md",{},true,"\u002Frules\u002Fhardcoded-conversion-values","TechArticle",{"title":5,"description":393},"rules\u002Fhardcoded-conversion-values",false,"gsK3gCLN80c7RXX5BriEKU7jZUhJXDUQZ3nCd44qk5U",1796069483161]