Skip to content

Commit

Permalink
Fixed pageview tracking
Browse files Browse the repository at this point in the history
  • Loading branch information
dhochbaum-dcp committed Sep 18, 2024
1 parent 6dc16ac commit a038251
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/utils/analytics.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ export function initializeMatomoTagManager(containerID) {
const observer = new MutationObserver(function(mutations) {
if (location.pathname !== previousUrlPath) {
previousUrlPath = location.pathname;
_paq.push(['setCustomUrl', location.href]);
_paq.push(['trackPageView']);
}
});
Expand Down

0 comments on commit a038251

Please sign in to comment.