@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.
- package/lib/constructorio.js +7 -1
- package/lib/types/tracker.d.ts +1 -0
- package/lib/version.js +1 -1
- package/package.json +1 -1
package/lib/constructorio.js
CHANGED
|
@@ -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()) {
|
package/lib/types/tracker.d.ts
CHANGED
package/lib/version.js
CHANGED