Skip to content

Commit

Permalink
Merge pull request #734 from ubilabs/feat/error-tracking
Browse files Browse the repository at this point in the history
feat(tracking): add basic JS error tracking to matomo
  • Loading branch information
mrMetalWood authored Nov 5, 2020
2 parents d6b86da + 4cfeabf commit a68f7ad
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/scripts/components/main/tracking/tracking.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ const Tracking: FunctionComponent = () => {
useEffect(() => {
if (consentGiven) {
pushInstruction('rememberConsentGiven');
pushInstruction('enableJSErrorTracking');
} else if (!requireConsentPushed) {
pushInstruction('requireConsent');
setRequireConsentPushed(true);
Expand Down

0 comments on commit a68f7ad

Please sign in to comment.