Track 'Back to top' click
This commit is contained in:
parent
6d842eefd0
commit
abab957fb4
1 changed files with 6 additions and 0 deletions
|
@ -60,6 +60,12 @@ function onClickCallback(event) {
|
|||
const element = event.target;
|
||||
const className = element.getAttribute('class');
|
||||
|
||||
// Track 'Back to top' click
|
||||
if (className === 'top-of-site-link') {
|
||||
trackInternalEvent('Back to top', 'navigation');
|
||||
return;
|
||||
}
|
||||
|
||||
// Track menu show
|
||||
if (className === 'sidebar-toggle') {
|
||||
trackInternalEvent('Sidebar Toggle', 'navigation');
|
||||
|
|
Loading…
Reference in a new issue