Skip to content

Commit

Permalink
add comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Amy Chen committed Jan 3, 2025
1 parent 82990cb commit bc4bdae
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/ui-client/src/utils/envConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ export async function fetchEnvData(): Promise<any> {
if (results[1].value) {
returnResults = {
...returnResults,
// user auth/context info will be under the `user` key
user: results[1].value
}
}
Expand Down
1 change: 1 addition & 0 deletions src/ui-client/src/utils/piwik.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ export async function addMatomoTracking() {
// no site Id return
if (!siteId) return;
// init global piwik tracking object
// note this will only be executed if BOTH userId and siteId are present
window._paq = [];
window._paq.push(["trackPageView"]);
window._paq.push(["enableLinkTracking"]);
Expand Down

0 comments on commit bc4bdae

Please sign in to comment.