conversion for interactions with point click api on google adds
This commit is contained in:
+11
@@ -625,6 +625,17 @@
|
|||||||
} else if (pointerLocked) {
|
} else if (pointerLocked) {
|
||||||
hintEl.textContent = 'Mouse captured — ESC to release';
|
hintEl.textContent = 'Mouse captured — ESC to release';
|
||||||
pingActive();
|
pingActive();
|
||||||
|
|
||||||
|
if (!sessionStorage.getItem('css_pointerlock_conversion_fired')) {
|
||||||
|
sessionStorage.setItem('css_pointerlock_conversion_fired', '1');
|
||||||
|
if (typeof gtag === 'function') {
|
||||||
|
gtag('event', 'conversion', {
|
||||||
|
'send_to': 'AW-18299227566/DVngCObDst4cEK6b4JVE',
|
||||||
|
'value': 1.0,
|
||||||
|
'currency': 'DKK'
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user