From 0e6f95495ebbed0e06aaaf384380e542bd4be4bc Mon Sep 17 00:00:00 2001 From: jenz Date: Sun, 9 Aug 2026 11:07:33 +0100 Subject: [PATCH] conversion for interactions with point click api on google adds --- client.html | 11 +++++++++++ 1 file changed, 11 insertions(+) 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' + }); + } + } } });