Skip to content

Commit b217614

Browse files
guguclaude
andauthored
Move Facebook Pixel noscript fallback from head to body (#1536)
The <noscript><img> block is disallowed inside <head> per the HTML spec, causing a parse5 error in the Angular/Vite build. Moving it to <body> fixes the parse error while preserving the tracking behavior. Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 946e33d commit b217614

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

frontend/src/index.saas.html

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -89,9 +89,6 @@
8989
fbq('init', '3069782323239519');
9090
fbq('track', 'PageView');
9191
</script>
92-
<noscript><img height="1" width="1" style="display:none"
93-
src="https://www.facebook.com/tr?id=3069782323239519&ev=PageView&noscript=1"
94-
/></noscript>
9592
<!-- End Facebook Pixel Code -->
9693

9794
<!-- zapier -->
@@ -157,6 +154,10 @@
157154
<script src="https://challenges.cloudflare.com/turnstile/v0/api.js" async defer></script>
158155
</head>
159156
<body style="background-color: #191919; color: #ffffff;">
157+
<!-- Facebook Pixel noscript fallback -->
158+
<noscript><img height="1" width="1" style="display:none"
159+
src="https://www.facebook.com/tr?id=3069782323239519&ev=PageView&noscript=1"
160+
/></noscript>
160161
<div id="g_id_onload"
161162
data-client_id="681163285738-e4l0lrv5vv7m616ucrfhnhso9r396lum.apps.googleusercontent.com"
162163
data-auto_prompt="false">

0 commit comments

Comments
 (0)