diff --git a/client.html b/client.html index 1fad6f5..9305e3b 100644 --- a/client.html +++ b/client.html @@ -625,6 +625,17 @@ } else if (pointerLocked) { hintEl.textContent = 'Mouse captured — ESC to release'; 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' + }); + } + } } });