diff --git a/src/web_accessible_resources/google-analytics_analytics.js b/src/web_accessible_resources/google-analytics_analytics.js index 0b6b7d569..2875e1d54 100644 --- a/src/web_accessible_resources/google-analytics_analytics.js +++ b/src/web_accessible_resources/google-analytics_analytics.js @@ -24,9 +24,6 @@ // https://developers.google.com/analytics/devguides/collection/analyticsjs/ const noopfn = function() { }; - const noopnullfn = function() { - return null; - }; // const Tracker = function() { }; @@ -64,7 +61,9 @@ ga.create = function() { return new Tracker(); }; - ga.getByName = noopnullfn; + ga.getByName = function() { + return new Tracker(); + }; ga.getAll = function() { return []; };