Skip to content

Commit

Permalink
Update error-analytics.js
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanmio committed Aug 26, 2023
1 parent bfa9f9a commit 93e0f7f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/utilities/error-analytics.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,8 @@ export function trackError(error, method, category = GA_CATEGORIES.SYSTEM, actio
category: category,
action: action,
label: `${method} - ${error.code || "Unknown error"}: ${error.message || ""}`,
dimensions: {
'dimension1': process.env.NODE_ENV // 'development' or 'production'
});
}

Expand Down

0 comments on commit 93e0f7f

Please sign in to comment.