Commit e97bf301 authored by Benni Mack's avatar Benni Mack
Browse files

Merge branch 'T3DEMO-296' into 'main'

[TASK] Register backend logins per usergroup

See merge request !30
parents c45a1ad6 1a1630f1
Pipeline #10232 passed with stages
in 8 minutes and 37 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