Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
services
demo.typo3.org
demo.typo3.org TYPO3 Installation
Commits
1a1630f1
Commit
1a1630f1
authored
Jan 15, 2021
by
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
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/extensions/demologin/Resources/Private/Templates/DemoLogin.html
View file @
1a1630f1
...
...
@@ -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>
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment