diff --git a/packages/GA4Client/src/common.js b/packages/GA4Client/src/common.js index 6008f63..10db44c 100644 --- a/packages/GA4Client/src/common.js +++ b/packages/GA4Client/src/common.js @@ -132,7 +132,7 @@ Common.prototype.standardizeParameters = function (parameters) { }; Common.prototype.standardizeName = function (name) { - if (window.GoogleAnalytics4Kit.setCustomNameStandardization(name)) { + if (window.GoogleAnalytics4Kit.hasOwnProperty(setCustomNameStandardization)) { try { name = window.GoogleAnalytics4Kit.setCustomNameStandardization(name); } catch (e) {