@constructor-io/constructorio-client-javascript 2.68.1 → 2.69.1

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.
@@ -160,6 +160,7 @@ var ConstructorIO = /*#__PURE__*/function () {
160
160
  * @param {object} [options.testCells] - User test cells
161
161
  * @param {number} [options.sessionId] - Session ID - Will only be set in DOM-less environments
162
162
  * @param {string} [options.userId] - User ID
163
+ * @param {boolean} [options.sendTrackingEvents] - Indicates if tracking events should be dispatched
163
164
  */
164
165
  return (0, _createClass2["default"])(ConstructorIO, [{
165
166
  key: "setClientOptions",
@@ -169,7 +170,8 @@ var ConstructorIO = /*#__PURE__*/function () {
169
170
  segments = options.segments,
170
171
  testCells = options.testCells,
171
172
  sessionId = options.sessionId,
172
- userId = options.userId;
173
+ userId = options.userId,
174
+ sendTrackingEvents = options.sendTrackingEvents;
173
175
  if (apiKey) {
174
176
  this.options.apiKey = apiKey;
175
177
  }
@@ -179,6 +181,10 @@ var ConstructorIO = /*#__PURE__*/function () {
179
181
  if (testCells) {
180
182
  this.options.testCells = testCells;
181
183
  }
184
+ if (typeof sendTrackingEvents === 'boolean') {
185
+ this.options.sendTrackingEvents = sendTrackingEvents;
186
+ this.tracker.requests.sendTrackingEvents = sendTrackingEvents;
187
+ }
182
188
 
183
189
  // Set Session ID in dom-less environments only
184
190
  if (sessionId && !helpers.canUseDOM()) {
@@ -193,6 +193,7 @@ declare class Tracker {
193
193
  filterName: string;
194
194
  filterValue: string;
195
195
  itemId: string;
196
+ itemName?: string;
196
197
  section?: string;
197
198
  variationId?: string;
198
199
  resultId?: string;
package/lib/version.js CHANGED
@@ -4,4 +4,4 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports["default"] = void 0;
7
- var _default = exports["default"] = '2.68.1';
7
+ var _default = exports["default"] = '2.69.1';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@constructor-io/constructorio-client-javascript",
3
- "version": "2.68.1",
3
+ "version": "2.69.1",
4
4
  "description": "Constructor.io JavaScript client",
5
5
  "main": "lib/constructorio.js",
6
6
  "types": "lib/types/index.d.ts",