.iframe-placeholder
{
background: #fff url(‘data:image/svg+xml;charset=utf-8,Loading Soldo Product Tour…’) 0px 0px no-repeat;
}

window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments)};
gtag(‘js’, new Date());
gtag(‘config’, ‘G-0NL99L6HDW’);

window.addEventListener(‘message’, (event) => {
if (event.data.kind === ‘navattic:event’ && window.Munchkin) {
const data = event.data;
const eventType = data.event;
if (eventType === ‘VIEW_STEP’) {
const project = encodeURIComponent(data.project.name);
const flow = encodeURIComponent(data.flow.name);
const step = encodeURIComponent(data.step.name);
const sessionId = encodeURIComponent(data.sessionId);
gtag(“event”, “navattic_event”, {
‘eventType’: ‘VIEW_STEP’,
‘sessionId’: sessionId,
‘project’: project,
‘flow’: flow,
‘step’: step
});
window.Munchkin.munchkinFunction(‘visitWebPage’, {
url: window.location.href,
params: `project=${project}&flow=${flow}&step=${step}`,
});
}
if (eventType === ‘CONVERTED’) {
const project = encodeURIComponent(data.project.name);
const flow = encodeURIComponent(data.flow.name);
const step = encodeURIComponent(data.step.name);
const sessionId = encodeURIComponent(data.sessionId);
const converted = encodeURIComponent(‘Converted’);
gtag(“event”, “navattic_event”, {
‘eventType’: ‘CONVERTED’,
‘sessionId’: sessionId,
‘project’: project,
‘flow’: flow,
‘step’: step
});
window.Munchkin.munchkinFunction(‘visitWebPage’, {
url: window.location.href,
params: `project=${project}&flow=${flow}&step=${step}&converted=${converted}`,
});
}
}
})