[object Object]

← back to Wallpaperwednesday

GA4+Meta pixel: inject gtag + fbq into homepage

c0b31eb157eb94eff60c44d6c84de652055ca51a · 2026-08-18 06:06:29 -0700 · Steve Abrams

Files touched

Diff

commit c0b31eb157eb94eff60c44d6c84de652055ca51a
Author: Steve Abrams <steve@designerwallcoverings.com>
Date:   Tue Aug 18 06:06:29 2026 -0700

    GA4+Meta pixel: inject gtag + fbq into homepage
---
 public/index.html | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/public/index.html b/public/index.html
index 3e3a1e4..8563b8b 100644
--- a/public/index.html
+++ b/public/index.html
@@ -365,6 +365,11 @@
 <!-- noscript fallback is added by set-fb-pixel.sh on flip (omitted here to avoid unflipped img phone-home) -->
 <noscript><img height="1" width="1" style="display:none" src="https://www.facebook.com/tr?id=1431180262113856<!-- End Meta Pixel -->ev=PageView<!-- End Meta Pixel -->noscript=1"/></noscript>
 <!-- End Meta Pixel -->
+<!-- GA4 -->
+<script async src="https://www.googletagmanager.com/gtag/js?id=G-76E6K13TNG"></script>
+<script>window.dataLayer=window.dataLayer||[];function gtag(){dataLayer.push(arguments)}gtag('js',new Date());gtag('config','G-76E6K13TNG');</script>
+<!-- Meta Pixel -->
+<script>!function(f,b,e,v,n,t,s){if(f.fbq)return;n=f.fbq=function(){n.callMethod?n.callMethod.apply(n,arguments):n.queue.push(arguments)};if(!f._fbq)f._fbq=n;n.push=n;n.loaded=!0;n.version='2.0';n.queue=[];t=b.createElement(e);t.async=!0;t.src=v;s=b.getElementsByTagName(e)[0];s.parentNode.insertBefore(t,s)}(window,document,'script','https://connect.facebook.net/en_US/fbevents.js');fbq('init','1431180262113856');fbq('track','PageView');</script>
 </head>
 <body>
 <!-- Theme toggle (theme1 / theme2) — query-param-gated preview surface

← aea3849 SEO: rel=nofollow sponsored on designerwallcoverings.com lin  ·  back to Wallpaperwednesday  ·  deploy: guard live runtime data from rsync --delete e85d1af →