Skip to content

Commit 46a3194

Browse files
committed
Allow updating sendTrackingEvents in setClientOptions
1 parent d395744 commit 46a3194

23 files changed

+68
-28
lines changed

dist/constructorio-client-javascript-2.68.1.js renamed to dist/constructorio-client-javascript-2.69.0.js

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/ConstructorIO.html

Lines changed: 36 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1339,7 +1339,7 @@ <h4 class="name" id="setClientOptions"><span class="type-signature"></span>setCl
13391339

13401340
<dt class="tag-source">Source:</dt>
13411341
<dd class="tag-source"><ul class="dummy"><li>
1342-
<a href="constructorio.js.html">constructorio.js</a>, <a href="constructorio.js.html#line162">line 162</a>
1342+
<a href="constructorio.js.html">constructorio.js</a>, <a href="constructorio.js.html#line163">line 163</a>
13431343
</li></ul></dd>
13441344

13451345

@@ -1623,6 +1623,40 @@ <h6>Properties</h6>
16231623
</tr>
16241624

16251625

1626+
1627+
<tr>
1628+
1629+
<td class="name"><code>sendTrackingEvents</code></td>
1630+
1631+
1632+
<td class="type">
1633+
1634+
1635+
<span class="param-type">boolean</span>
1636+
1637+
1638+
1639+
1640+
</td>
1641+
1642+
1643+
<td class="attributes">
1644+
1645+
&lt;optional><br>
1646+
1647+
1648+
1649+
1650+
1651+
</td>
1652+
1653+
1654+
1655+
1656+
<td class="description last">Indicates if tracking events should be dispatched</td>
1657+
</tr>
1658+
1659+
16261660
</tbody>
16271661
</table>
16281662

@@ -1671,7 +1705,7 @@ <h6>Properties</h6>
16711705
<br class="clear">
16721706

16731707
<footer>
1674-
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.4</a> on Wed Oct 08 2025 10:58:24 GMT-0400 (Eastern Daylight Time) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
1708+
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.4</a> on Mon Oct 13 2025 10:25:41 GMT-0400 (Eastern Daylight Time) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
16751709
</footer>
16761710

16771711
<script>prettyPrint();</script>

docs/constructorio.js.html

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -207,10 +207,11 @@ <h1 class="page-title">constructorio.js</h1>
207207
* @param {object} [options.testCells] - User test cells
208208
* @param {number} [options.sessionId] - Session ID - Will only be set in DOM-less environments
209209
* @param {string} [options.userId] - User ID
210+
* @param {boolean} [options.sendTrackingEvents] - Indicates if tracking events should be dispatched
210211
*/
211212
setClientOptions(options) {
212213
if (Object.keys(options).length) {
213-
const { apiKey, segments, testCells, sessionId, userId } = options;
214+
const { apiKey, segments, testCells, sessionId, userId, sendTrackingEvents } = options;
214215

215216
if (apiKey) {
216217
this.options.apiKey = apiKey;
@@ -224,6 +225,11 @@ <h1 class="page-title">constructorio.js</h1>
224225
this.options.testCells = testCells;
225226
}
226227

228+
if (typeof sendTrackingEvents === 'boolean') {
229+
this.options.sendTrackingEvents = sendTrackingEvents;
230+
this.tracker.requests.sendTrackingEvents = sendTrackingEvents;
231+
}
232+
227233
// Set Session ID in dom-less environments only
228234
if (sessionId &amp;&amp; !helpers.canUseDOM()) {
229235
this.options.sessionId = sessionId;
@@ -260,7 +266,7 @@ <h1 class="page-title">constructorio.js</h1>
260266
<br class="clear">
261267

262268
<footer>
263-
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.4</a> on Wed Oct 08 2025 10:58:24 GMT-0400 (Eastern Daylight Time) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
269+
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.4</a> on Mon Oct 13 2025 10:25:40 GMT-0400 (Eastern Daylight Time) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
264270
</footer>
265271

266272
<script>prettyPrint();</script>

docs/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ <h2>Development / npm commands</h2>
114114
<br class="clear">
115115

116116
<footer>
117-
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.4</a> on Wed Oct 08 2025 10:58:24 GMT-0400 (Eastern Daylight Time) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
117+
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.4</a> on Mon Oct 13 2025 10:25:40 GMT-0400 (Eastern Daylight Time) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
118118
</footer>
119119

120120
<script>prettyPrint();</script>

docs/module-agent.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -512,7 +512,7 @@ <h5 class="h5-returns">Returns:</h5>
512512
<br class="clear">
513513

514514
<footer>
515-
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.4</a> on Wed Oct 08 2025 10:58:24 GMT-0400 (Eastern Daylight Time) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
515+
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.4</a> on Mon Oct 13 2025 10:25:41 GMT-0400 (Eastern Daylight Time) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
516516
</footer>
517517

518518
<script>prettyPrint();</script>

docs/module-assistant.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -410,7 +410,7 @@ <h5 class="h5-returns">Returns:</h5>
410410
<br class="clear">
411411

412412
<footer>
413-
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.4</a> on Wed Oct 08 2025 10:58:24 GMT-0400 (Eastern Daylight Time) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
413+
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.4</a> on Mon Oct 13 2025 10:25:41 GMT-0400 (Eastern Daylight Time) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
414414
</footer>
415415

416416
<script>prettyPrint();</script>

docs/module-autocomplete.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -851,7 +851,7 @@ <h5 class="h5-returns">Returns:</h5>
851851
<br class="clear">
852852

853853
<footer>
854-
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.4</a> on Wed Oct 08 2025 10:58:24 GMT-0400 (Eastern Daylight Time) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
854+
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.4</a> on Mon Oct 13 2025 10:25:41 GMT-0400 (Eastern Daylight Time) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
855855
</footer>
856856

857857
<script>prettyPrint();</script>

docs/module-browse.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3189,7 +3189,7 @@ <h5 class="h5-returns">Returns:</h5>
31893189
<br class="clear">
31903190

31913191
<footer>
3192-
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.4</a> on Wed Oct 08 2025 10:58:24 GMT-0400 (Eastern Daylight Time) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
3192+
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.4</a> on Mon Oct 13 2025 10:25:41 GMT-0400 (Eastern Daylight Time) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
31933193
</footer>
31943194

31953195
<script>prettyPrint();</script>

docs/module-quizzes.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2143,7 +2143,7 @@ <h5 class="h5-returns">Returns:</h5>
21432143
<br class="clear">
21442144

21452145
<footer>
2146-
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.4</a> on Wed Oct 08 2025 10:58:24 GMT-0400 (Eastern Daylight Time) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
2146+
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.4</a> on Mon Oct 13 2025 10:25:41 GMT-0400 (Eastern Daylight Time) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
21472147
</footer>
21482148

21492149
<script>prettyPrint();</script>

docs/module-recommendations.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -851,7 +851,7 @@ <h5 class="h5-returns">Returns:</h5>
851851
<br class="clear">
852852

853853
<footer>
854-
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.4</a> on Wed Oct 08 2025 10:58:24 GMT-0400 (Eastern Daylight Time) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
854+
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.4</a> on Mon Oct 13 2025 10:25:41 GMT-0400 (Eastern Daylight Time) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
855855
</footer>
856856

857857
<script>prettyPrint();</script>

0 commit comments

Comments
 (0)