coveo.analytics 2.28.22 → 2.28.23

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -728,7 +728,7 @@
728
728
  const v5 = v35('v5', 0x50, sha1);
729
729
  var uuidv5 = v5;
730
730
 
731
- var libVersion = "2.28.22" ;
731
+ var libVersion = "2.28.23" ;
732
732
 
733
733
  var getFormattedLocation = function (location) {
734
734
  return "".concat(location.protocol, "//").concat(location.hostname).concat(location.pathname.indexOf('/') === 0 ? location.pathname : "/".concat(location.pathname)).concat(location.search);
@@ -1551,6 +1551,10 @@
1551
1551
  this.clear();
1552
1552
  this.runtime.storage = new NullStorage();
1553
1553
  }
1554
+ this.addEventTypeMapping(EventType.view, { newEventType: EventType.view, addClientIdParameter: true });
1555
+ this.addEventTypeMapping(EventType.click, { newEventType: EventType.click, addClientIdParameter: true });
1556
+ this.addEventTypeMapping(EventType.custom, { newEventType: EventType.custom, addClientIdParameter: true });
1557
+ this.addEventTypeMapping(EventType.search, { newEventType: EventType.search, addClientIdParameter: true });
1554
1558
  }
1555
1559
  Object.defineProperty(CoveoAnalyticsClient.prototype, "defaultOptions", {
1556
1560
  get: function () {
@@ -2536,7 +2540,6 @@
2536
2540
  return _this.plugins.require(pluginKey, pluginOptions_1);
2537
2541
  });
2538
2542
  this.client.registerBeforeSendEventHook(function (eventType, payload) { return (__assign(__assign({}, payload), _this.params)); });
2539
- this.client.addEventTypeMapping(EventType.view, { newEventType: EventType.view, addClientIdParameter: true });
2540
2543
  }
2541
2544
  else {
2542
2545
  throw new Error("You must pass either your token or a valid object when you call 'init'");