You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: src/options.js
+9
Original file line number
Diff line number
Diff line change
@@ -28,6 +28,10 @@ import language from './language';
28
28
* @property {boolean} [optOut=`false`] - Whether or not to disable tracking for the current user.
29
29
* @property {function} [onError=`() => {}`] - Function to call on error.
30
30
* @property {function} [onExitPage=`() => {}`] - Function called when the user exits the browser. Useful logging on page exit.
31
+
* @property {Object} [plan] Tracking plan properties
32
+
* @property {string} [plan.branch] The tracking plan branch name e.g. "main"
33
+
* @property {string} [plan.source] The tracking plan source e.g. "web"
34
+
* @property {string} [plan.version] The tracking plan version e.g. "1", "15"
31
35
* @property {string} [platform=`Web`] - Platform device is running on. Defaults to `Web` (browser, including mobile browsers).
32
36
* @property {number} [savedMaxCount=`1000`] - Maximum number of events to save in localStorage. If more events are logged while offline, then old events are removed.
33
37
* @property {boolean} [saveEvents=`true`] - If `true`, saves events to localStorage and removes them upon successful upload. *Note: Without saving events, events may be lost if the user navigates to another page before the events are uploaded.*
0 commit comments