function _pm_executeGtag() {
const scriptExists = document.querySelector('script[src^="https://www.googletagmanager.com/gtag/js?id="]');
let foundJsDate = false;
if (typeof dataLayer !== 'undefined') {
for( var i = 0; i 2 && dataLayer[i][0] === 'js' ) {
foundJsDate = true;
break;
}
}
}
if (scriptExists && foundJsDate) {
window.dataLayer = window.dataLayer || [];
function gtag(){ dataLayer.push(arguments); }
gtag('config', 'G-YSHFKT1EN8');
gtag('config', 'G-KTK03EY08G');
gtag('js', new Date());
} else {
const script = document.createElement('script');
script.async = true;
script.id = 'profitmetrics-ga4-script-G-YSHFKT1EN8';
script.src = 'https://www.googletagmanager.com/gtag/js?id=G-YSHFKT1EN8';
document.head.appendChild(script);
script.addEventListener('load', function() {
window.dataLayer = window.dataLayer || [];
function gtag(){ dataLayer.push(arguments); }
gtag('config', 'G-YSHFKT1EN8');
gtag('config', 'G-KTK03EY08G');
gtag('js', new Date());
});
}
}
_pm_executeGtag();