Commit 1a1630f1 authored by David Steeb's avatar David Steeb
Browse files

[TASK] Register backend logins per usergroup

Related: T3DEMO-296
parent 4e4e0de7
Pipeline #10229 passed with stage
in 2 minutes and 35 seconds
......@@ -26,6 +26,22 @@
</div>
</div>
<script async defer data-website-id="5092964f-4f3e-4bbc-9717-26b4bfb68ca4" src="https://umami.b13.live/script.js"></script>
<script>
document.addEventListener("DOMContentLoaded", (event) => {
let loginButton = document.getElementById('t3-login-submit');
loginButton.onclick = () => registerBackendLogin();
function registerBackendLogin(){
let usergroup = document.getElementById('demo-login-dropdown');
let usergroupText = usergroup.options[usergroup.selectedIndex];
let eventLabel = 'Backend Login - ' + usergroupText.text;
umami.trackEvent(eventLabel, 'login');
}
});
</script>
</f:section>
</html>
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment