Skip to content

Commit

Permalink
feat(ui): #352 Track disconnects
Browse files Browse the repository at this point in the history
Closes: #352
  • Loading branch information
tmelliott committed Dec 19, 2023
1 parent 68d8d10 commit c04d75b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions www/js/disconnect.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,5 +40,10 @@ $(function () {

// $("#sessionId").html(log.session_id);
// $("#dlLogButton").attr("href", log.download_path);

// track disconnect in matomo, if enabled
if (_paq) {
_paq.push(["trackEvent", "session", "disconnect"]);
}
});
});
1 change: 1 addition & 0 deletions www/js/user-info.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
var _paq = (window._paq = window._paq || []);
/* tracker methods like "setCustomDimension" should be called before "trackPageView" */
_paq.push(["enableHeartBeatTimer"]);
_paq.push(["trackPageView"]);
_paq.push(["enableLinkTracking"]);
(function () {
Expand Down

0 comments on commit c04d75b

Please sign in to comment.