[{"data":1,"prerenderedAt":359},["ShallowReactive",2],{"rule-duplicate-platform-pixels":3},{"id":4,"title":5,"body":6,"breadcrumb":322,"coderail":329,"dateModified":348,"datePublished":348,"description":349,"extension":350,"meta":351,"navigation":352,"next":348,"path":353,"prev":348,"schemaType":354,"seo":355,"stem":356,"wide":357,"__hash__":358},"docs\u002Frules\u002Fduplicate-platform-pixels.md","Same ad platform deployed as both native tag and Custom HTML",{"type":7,"value":8,"toc":314},"minimark",[9,16,54,59,98,102,109,113,195,199,220,224,282,286,310],[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",{},"duplicate-platform-pixels",[20,31,32,35],{},[13,33,34],{},"purpose"," — Detect ad platforms deployed via both a native GTM tag and a Custom HTML base pixel in the same container",[20,37,38,41],{},[13,39,40],{},"effect"," — Both implementations fire independently, double-counting page views and distorting conversion attribution",[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,85,86,89,90,93,94,97],{},"The rule collects all active, non-paused tags where ",[27,63,64],{},"adPlatform"," metadata is set, grouping them by platform. It then scans active Custom HTML tags for base pixel initialization patterns across seven platforms: Meta (",[27,67,68],{},"fbq('init'","), LinkedIn (",[27,71,72],{},"_linkedin_data_partner_id","), TikTok (",[27,75,76],{},"ttq.load(","), Snapchat (",[27,79,80],{},"snaptr('init'","), Reddit (",[27,83,84],{},"rdt('init'","), Twitter\u002FX (",[27,87,88],{},"twq('config'"," or ",[27,91,92],{},"twq('init'","), and Pinterest (",[27,95,96],{},"pintrk('load'","). When a native tag and a matching Custom HTML init pattern exist for the same platform, the rule emits a finding. Paused tags are excluded from both checks.",[55,99,101],{"id":100},"why-it-matters","Why it matters",[10,103,104,105,108],{},"Each implementation fires independently on every page load. A container with both a native Meta Pixel tag and a Custom HTML tag running ",[27,106,107],{},"fbq('init', ...)"," sends two separate page view hits to Meta per actual page view. Conversion counts inflate at the same rate — both tags can claim credit for the same event. Platform optimization algorithms (CPM bidding, audience modeling, reach estimation) consume the inflated signal and produce unreliable output. Native tags are always the preferable path: they carry built-in consent integration and receive vendor support.",[55,110,112],{"id":111},"example","Before \u002F after",[114,115,116,178],"compare",{},[117,118,120,123,175],"compare-col",{"label":119},"Before — flagged",[10,121,122],{},"Container holds a native Meta Pixel tag (GTM template, pixel ID\nconfigured in the tag settings) AND a Custom HTML tag with:",[124,125,130],"pre",{"className":126,"code":127,"language":128,"meta":129,"style":129},"language-js shiki shiki-themes github-light github-dark","fbq('init', '1234567890')\nfbq('track', 'PageView')\n","js","",[27,131,132,158],{"__ignoreMap":129},[133,134,137,141,145,149,152,155],"span",{"class":135,"line":136},"line",1,[133,138,140],{"class":139},"sScJk","fbq",[133,142,144],{"class":143},"sVt8B","(",[133,146,148],{"class":147},"sZZnC","'init'",[133,150,151],{"class":143},", ",[133,153,154],{"class":147},"'1234567890'",[133,156,157],{"class":143},")\n",[133,159,161,163,165,168,170,173],{"class":135,"line":160},2,[133,162,140],{"class":139},[133,164,144],{"class":143},[133,166,167],{"class":147},"'track'",[133,169,151],{"class":143},[133,171,172],{"class":147},"'PageView'",[133,174,157],{"class":143},[10,176,177],{},"Both tags fire on the same All Pages trigger.\nMeta receives two page view hits per actual page load.",[117,179,181,184],{"label":180},"After — fixed",[10,182,183],{},"Native Meta Pixel tag remains. The Custom HTML tag is removed.",[10,185,186,187,190,191,194],{},"The native tag handles ",[27,188,189],{},"init"," and ",[27,192,193],{},"PageView"," tracking.\nConsent mode and tag sequencing are managed through the\nnative template's built-in settings.",[55,196,198],{"id":197},"remediation","Remediation",[200,201,202,205,208,211,214,217],"ol",{},[20,203,204],{},"Check the finding detail to confirm which platforms are affected.",[20,206,207],{},"For each platform, identify the native GTM tag and the Custom HTML tag.",[20,209,210],{},"Verify the native tag covers the same pixel ID and events as the Custom HTML version.",[20,212,213],{},"Pause the Custom HTML base pixel tag — do not delete it immediately.",[20,215,216],{},"Monitor the platform's reporting for 24–48 hours to confirm metrics drop to expected levels.",[20,218,219],{},"Delete the Custom HTML tag after one reporting cycle confirms stable data.",[55,221,223],{"id":222},"metadata","Metadata",[225,226,229,230,235,229,239,243,229,246,250,229,253,256,229,259,263,229,266,270,229,276,279],"dl",{"className":227},[228],"spec-list","\n  ",[231,232,234],"dt",{"id":233},"severity","Severity",[236,237,238],"dd",{},"high",[231,240,242],{"id":241},"tier","Tier",[236,244,245],{},"optimization",[231,247,249],{"id":248},"category","Category",[236,251,252],{},"ads",[231,254,255],{"id":46},"Layer",[236,257,258],{},"container",[231,260,262],{"id":261},"version","Version",[236,264,265],{},"1",[231,267,269],{"id":268},"effort","Effort",[236,271,272,275],{},[27,273,274],{},"15min"," (about 15 minutes)",[231,277,278],{"id":52},"Reversibility",[236,280,281],{},"non-destructive",[55,283,285],{"id":284},"see-also","See also",[17,287,288,296,303],{},[20,289,290,295],{},[291,292,294],"a",{"href":293},"\u002Fcategories\u002Fads\u002F","Ads rules"," — other rules in this category",[20,297,298,302],{},[291,299,301],{"href":300},"\u002Fhealth-score\u002F","Health score"," — how this rule contributes to the score",[20,304,305,309],{},[291,306,308],{"href":307},"\u002Frules\u002F","Rules catalog"," — browse all rules",[311,312,313],"style",{},"html pre.shiki code .sScJk, html code.shiki .sScJk{--shiki-default:#6F42C1;--shiki-dark:#B392F0}html pre.shiki code .sVt8B, html code.shiki .sVt8B{--shiki-default:#24292E;--shiki-dark:#E1E4E8}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":129,"searchDepth":160,"depth":160,"links":315},[316,317,318,319,320,321],{"id":57,"depth":160,"text":58},{"id":100,"depth":160,"text":101},{"id":111,"depth":160,"text":112},{"id":197,"depth":160,"text":198},{"id":222,"depth":160,"text":223},{"id":284,"depth":160,"text":285},[323,326,328],{"label":324,"href":325},"API Reference","\u002F",{"label":327,"href":307},"Rules",{"label":29},{"cards":330,"onpage":342},[331],{"title":332,"tabs":333},"Evaluate",[334,338],{"label":335,"language":336,"code":337},"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\":\"duplicate-platform-pixels\",\"url\":\"https:\u002F\u002Fexample.com\"}'\n",{"label":339,"language":340,"code":341},"MCP","text","User: Run duplicate-platform-pixels on https:\u002F\u002Fexample.com\n\n# Tool call\n{\n  \"tool\": \"evaluate_rule\",\n  \"arguments\": {\n    \"rule_id\": \"duplicate-platform-pixels\",\n    \"url\": \"https:\u002F\u002Fexample.com\"\n  }\n}\n",[343,344,345,346,347],{"id":57,"label":58},{"id":100,"label":101},{"id":111,"label":112},{"id":197,"label":198},{"id":222,"label":223},null,"An ad platform is implemented via both a native GTM tag and Custom HTML base pixel code, causing double-counting of page views and conversions.","md",{},true,"\u002Frules\u002Fduplicate-platform-pixels","TechArticle",{"title":5,"description":349},"rules\u002Fduplicate-platform-pixels",false,"tYUzgPI8_bEulaTuwty_40nKsFg9QbM77Zx8dMNhn6s",1796069483133]