Skip to content

Commit

Permalink
remove-analytics-console-log-statement-in-ci
Browse files Browse the repository at this point in the history
  • Loading branch information
rmccar committed Oct 31, 2024
1 parent 26278a2 commit 1224e81
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/js/analytics.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@ if (window.google_tag_manager !== undefined) {
console.log('Data sent to Data Layer');
};
} else {
console.log('Google analytics not connected');
if (process.env.RUNNING_IN_CI !== 'true') {
console.log('Google analytics not connected');
}
}

export const trackElement = (el, type) => {
Expand Down

0 comments on commit 1224e81

Please sign in to comment.