From a5cb10c0dd6bda95e971acdfe1c19aa91c30f2ca Mon Sep 17 00:00:00 2001 From: Josh Oransky <134399633+cazzaranjosh@users.noreply.github.com> Date: Tue, 5 Dec 2023 11:35:35 -0800 Subject: [PATCH] Update delayed.js Added gtag() with createEl --- scripts/delayed.js | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/scripts/delayed.js b/scripts/delayed.js index aa0c0cd..bedbf0f 100644 --- a/scripts/delayed.js +++ b/scripts/delayed.js @@ -47,6 +47,16 @@ createEl('script', { async: true, }, '', document.head); +createEl('script', { +}, ` + window.dataLayer = window.dataLayer || []; + function gtag(){ + dataLayer.push(arguments); + } + gtag('js', new Date()); + gtag('config', 'G-Z39YF2LV3B'); +`, document.head); + /* Meta */ createEl('script', { src: 'https://connect.facebook.net/signals/config/1404641949861336?v=2.9.111&r=stable',