if (typeof conversion_id === 'undefined') {
// Replace 'AW-CONV-ID' with your conversion ID
var conversion_id = '989165692'; // must be associated with Google Tag installed at Wix
}
if (typeof conversion_label === 'undefined') {
// Replace 'CONVERSION-LABEL' with your conversion label
var conversion_label = 'cEoNCIP_5p8ZEPzw1dcD';
}
function registerListener() {
window.wixDevelopersAnalytics.register('conversionListener', (e, p) => {
if (e === 'Lead') {
if (!dataLayer) {
console.error('Google Tag (gtag) is not loaded. ');
} else {
function gtag() { dataLayer.push(arguments); }
gtag('event', 'conversion', {
'send_to': conversion_id + '/' + conversion_label
});
}
}
});
}
window.wixDevelopersAnalytics ? registerListener() : window.addEventListener('wixDevelopersAnalyticsReady', registerListener);