[object Object]

← back to Vinylwallpaper

add: pre-stage Meta Pixel snippet (placeholder; flip via _dw-batch set-fb-pixel.sh)

4de5be93ba6d3f726b1e4b8402cd76d3d1d5fbee · 2026-05-20 00:27:44 -0700 · Steve

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>

Files touched

Diff

commit 4de5be93ba6d3f726b1e4b8402cd76d3d1d5fbee
Author: Steve <steve@designerwallcoverings.com>
Date:   Wed May 20 00:27:44 2026 -0700

    add: pre-stage Meta Pixel snippet (placeholder; flip via _dw-batch set-fb-pixel.sh)
    
    Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
---
 public/index.html | 18 ++++++++++++++++++
 1 file changed, 18 insertions(+)

diff --git a/public/index.html b/public/index.html
index 7936327..402a0f9 100644
--- a/public/index.html
+++ b/public/index.html
@@ -216,6 +216,24 @@ textarea:focus-visible,
 .cinema-bg, .hero4-cell, .cell { background-position: center 12% !important; }
 .card img, .product img { object-position: center 12% !important; }
 </style>
+<!-- Meta Pixel — INERT until set-fb-pixel.sh is run (does NOT load fbevents.js or hit Meta until flipped) -->
+<script>
+(function(){
+  var PIXEL_ID = '{{FACEBOOK_PIXEL_ID}}';
+  // Inert until flipped — the brace check prevents BOTH the loader IIFE
+  // AND the init call from running, so fbevents.js is never fetched.
+  if (PIXEL_ID.indexOf('{{') !== -1) return;
+  !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', PIXEL_ID);
+  fbq('track', 'PageView');
+})();
+</script>
+<!-- noscript fallback is added by set-fb-pixel.sh on flip (omitted here to avoid unflipped img phone-home) -->
+<!-- End Meta Pixel -->
 </head>
 <body>
 <style id="ns-header-modal-styles">

← 3c391ac fix: /about → history.html alias (was 404)  ·  back to Vinylwallpaper  ·  retag aesthetic from PG: 590 rows updated 724e9f2 →