This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Step 1. Add and initialize your third-party JavaScript pixel (make sure to exclude HTML) | |
// Replace with you GA4 Tag | |
const TAG_ID = 'G-XXXXXXXXXX'; | |
const script = document.createElement('script'); | |
script.setAttribute('src', `https://www.googletagmanager.com/gtag/js?id=${TAG_ID}`); | |
script.setAttribute('async', ''); | |
document.head.appendChild(script); | |
window.dataLayer = window.dataLayer || []; |