Skip to content

Commit

Permalink
ignore gtag if GA value is blank
Browse files Browse the repository at this point in the history
  • Loading branch information
ballPointPenguin committed Jun 21, 2024
1 parent 13aa0d2 commit 36bed8f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions client-participation/js/util/gaMetric.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,10 @@ const methodToEventMap = {
};

function routeEvent(routerMethod, methodArgs) {
if (!Constants.GA_TRACKING_ID) {
return;
}

const event = methodToEventMap[routerMethod];

// check for demo
Expand Down

0 comments on commit 36bed8f

Please sign in to comment.