From a01429421dfb1009928e1d2d6e54ff7dec44aa26 Mon Sep 17 00:00:00 2001 From: Victor Rhea Date: Fri, 28 Aug 2026 21:37:12 -0300 Subject: [PATCH] Load the data-driven beacon and move indexKey to the head Replaces the legacy integration-sandbox beacon with the DDB bundle built for this site, and moves window.cnstrc.indexKey out of the React bundle into the document head, so the beacon no longer depends on application code having executed. --- public/index.html | 17 +++++++++++------ src/index.jsx | 4 ---- 2 files changed, 11 insertions(+), 10 deletions(-) diff --git a/public/index.html b/public/index.html index 99eea45..71a784c 100644 --- a/public/index.html +++ b/public/index.html @@ -1,4 +1,4 @@ - + @@ -22,9 +22,17 @@ work correctly both with client-side routing and a non-root public URL. Learn how to configure a non-root public URL by running `npm run build`. --> - - + + Constructor Data Driven Tracking Example + + @@ -40,7 +48,4 @@ To create a production bundle, use `npm run build` or `yarn build`. --> - diff --git a/src/index.jsx b/src/index.jsx index 0b9861a..99abad2 100644 --- a/src/index.jsx +++ b/src/index.jsx @@ -4,10 +4,6 @@ import { HashRouter } from 'react-router-dom'; import App from './App'; import './index.css'; -// Initialize Constructor.io global tracking object -window.cnstrc = window.cnstrc || {}; -window.cnstrc.indexKey = 'key_x6UnCVRZaJgIHFQD'; - const root = ReactDOM.createRoot(document.getElementById('root')); root.render(