[{"data":1,"prerenderedAt":303},["ShallowReactive",2],{"rule-ga4-once-per-load":3},{"id":4,"title":5,"body":6,"breadcrumb":267,"coderail":274,"dateModified":292,"datePublished":292,"description":293,"extension":294,"meta":295,"navigation":296,"next":292,"path":297,"prev":292,"schemaType":298,"seo":299,"stem":300,"wide":301,"__hash__":302},"docs\u002Frules\u002Fga4-once-per-load.md","Event tags with Once Per Page firing",{"type":7,"value":8,"toc":258},"minimark",[9,16,54,59,101,105,110,114,140,144,168,172,230,234],[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",{},"ga4-once-per-load",[20,31,32,35],{},[13,33,34],{},"purpose"," — Detect GA4 event tags using Once Per Page firing that will silently drop repeat events on SPAs",[20,37,38,41],{},[13,39,40],{},"effect"," — Repeat events (purchase, form_submit, etc.) are lost after the first page load in single-page applications",[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,77,93,96,97,100],{},"The rule checks all active GA4 event tags (",[27,63,64],{},"type === 'gaawe'",") where ",[27,67,68],{},"firingOption === 'ONCE_PER_LOAD'",". Tags whose ",[27,71,72],{},"ga4.eventName"," matches ",[27,75,76],{},"page_view",", ",[27,79,80],{},"page_visit",", or ",[27,83,84],{},"pageview"," are excluded — once-per-load is correct for those event names. Any remaining tag with ",[27,87,88],{},"ONCE_PER_LOAD"," is flagged at high severity. Paused tags are excluded. The finding lists each affected tag's ",[27,91,92],{},"id",[27,94,95],{},"name",", and ",[27,98,99],{},"eventName"," for direct triage.",[55,102,104],{"id":103},"why-it-matters","Why it matters",[10,106,107,109],{},[27,108,88],{}," tells GTM (Google Tag Manager) to fire a tag at most once per browser-level navigation event. On multi-page sites this is harmless — each route change reloads the page. On single-page applications (SPAs — React, Vue, Angular, Next.js), navigation does not reload the page. GTM evaluates the once-per-load gate at initial load only. A user who submits a form, completes a purchase, or clicks a CTA multiple times in a session will have only the first event sent to GA4. The remaining occurrences are discarded silently — no console error, no network request, no GA4 record.",[55,111,113],{"id":112},"example","Before \u002F after",[115,116,117,131],"compare",{},[118,119,121],"compare-col",{"label":120},"Before — flagged",[122,123,129],"pre",{"className":124,"code":126,"language":127,"meta":128},[125],"language-text","Tag: \"GA4 - purchase\"\n  Event name: purchase\n  Firing option: Once Per Page  ← flagged\n  Trigger: All Pages\n","text","",[27,130,126],{"__ignoreMap":128},[118,132,134],{"label":133},"After — fixed",[122,135,138],{"className":136,"code":137,"language":127,"meta":128},[125],"Tag: \"GA4 - purchase\"\n  Event name: purchase\n  Firing option: Unlimited       ← correct for repeatable events\n  Trigger: purchase (custom event trigger)\n",[27,139,137],{"__ignoreMap":128},[55,141,143],{"id":142},"remediation","Remediation",[145,146,147,150,153,156,159,162,165],"ol",{},[20,148,149],{},"Open each flagged tag in the GTM container editor.",[20,151,152],{},"Confirm the event name is a repeatable action (purchase, form_submit, sign_up, etc.).",[20,154,155],{},"Change the firing option from \"Once Per Page\" to \"Unlimited\".",[20,157,158],{},"If deduplication is required, use \"Once Per Event\" with an event-scoped deduplication key instead.",[20,160,161],{},"Verify the trigger fires on the correct custom event, not a broad page-load trigger.",[20,163,164],{},"Test in GTM Preview mode by performing the action multiple times and confirming each occurrence appears in GA4 DebugView.",[20,166,167],{},"Publish the container.",[55,169,171],{"id":170},"metadata","Metadata",[173,174,177,178,183,177,187,191,177,194,198,177,201,204,177,207,211,177,214,218,177,224,227],"dl",{"className":175},[176],"spec-list","\n  ",[179,180,182],"dt",{"id":181},"severity","Severity",[184,185,186],"dd",{},"high",[179,188,190],{"id":189},"tier","Tier",[184,192,193],{},"optimization",[179,195,197],{"id":196},"category","Category",[184,199,200],{},"ga4",[179,202,203],{"id":46},"Layer",[184,205,206],{},"container",[179,208,210],{"id":209},"version","Version",[184,212,213],{},"1",[179,215,217],{"id":216},"effort","Effort",[184,219,220,223],{},[27,221,222],{},"15min"," (about 15 minutes)",[179,225,226],{"id":52},"Reversibility",[184,228,229],{},"non-destructive",[55,231,233],{"id":232},"see-also","See also",[17,235,236,244,251],{},[20,237,238,243],{},[239,240,242],"a",{"href":241},"\u002Fcategories\u002Fga4\u002F","GA4 rules"," — other rules in this category",[20,245,246,250],{},[239,247,249],{"href":248},"\u002Fhealth-score\u002F","Health score"," — how this rule contributes to the score",[20,252,253,257],{},[239,254,256],{"href":255},"\u002Frules\u002F","Rules catalog"," — browse all rules",{"title":128,"searchDepth":259,"depth":259,"links":260},2,[261,262,263,264,265,266],{"id":57,"depth":259,"text":58},{"id":103,"depth":259,"text":104},{"id":112,"depth":259,"text":113},{"id":142,"depth":259,"text":143},{"id":170,"depth":259,"text":171},{"id":232,"depth":259,"text":233},[268,271,273],{"label":269,"href":270},"API Reference","\u002F",{"label":272,"href":255},"Rules",{"label":29},{"cards":275,"onpage":286},[276],{"title":277,"tabs":278},"Evaluate",[279,283],{"label":280,"language":281,"code":282},"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\":\"ga4-once-per-load\",\"url\":\"https:\u002F\u002Fexample.com\"}'\n",{"label":284,"language":127,"code":285},"MCP","User: Run ga4-once-per-load on https:\u002F\u002Fexample.com\n\n# Tool call\n{\n  \"tool\": \"evaluate_rule\",\n  \"arguments\": {\n    \"rule_id\": \"ga4-once-per-load\",\n    \"url\": \"https:\u002F\u002Fexample.com\"\n  }\n}\n",[287,288,289,290,291],{"id":57,"label":58},{"id":103,"label":104},{"id":112,"label":113},{"id":142,"label":143},{"id":170,"label":171},null,"GA4 event tags set to fire Once Per Page, which silently drops repeat events on single-page applications.","md",{},true,"\u002Frules\u002Fga4-once-per-load","TechArticle",{"title":5,"description":293},"rules\u002Fga4-once-per-load",false,"_sNuyc2YmGvikkrjuRuVrrrewDLQcADrkp6jgQKK3Gw",1796069483831]