Skip to content

Commit

Permalink
NickAkhmetov/HOTFIX - Fix matomo user group tracking (#3349)
Browse files Browse the repository at this point in the history
  • Loading branch information
NickAkhmetov authored Nov 30, 2023
1 parent df3aabd commit 11b9723
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG-matomo-groups.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
- Fix matomo user group tracking.
5 changes: 4 additions & 1 deletion context/app/static/js/helpers/trackers.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,10 @@ export function getUserGroups() {
function getCustomDimensions() {
const userType = getUserType();
const userGroups = getUserGroups();
return [1 /* user_type */, userType, 2 /* user_groups */, userGroups];
return [
[1 /* user_type */, userType],
[2 /* user_groups */, userGroups],
];
}

const tracker = new MatomoTracker({
Expand Down

0 comments on commit 11b9723

Please sign in to comment.