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
Your `appId` and `endpoint` are already set up in it, here's an explanation of each property:
47
-
48
-
- **appId (Required)**: the app id of your project in control plane.
49
-
- **endpoint (Required)**: the endpoint path you will upload the event to AWS server.
50
-
- **sendMode**: EventMode.Immediate, EventMode.Batch, default is Immediate mode.
51
-
- **sendEventsInterval**: event sending interval millisecond, works only bath send mode, the default value is `5000`
52
-
- **isTrackPageViewEvents**: whether auto page view events in browser, default is `true`
53
-
- **pageType**: the website type, `SPA` for single page application, `multiPageApp` for multipule page application, default is `SPA`. This attribute works only when the attribute `isTrackPageViewEvents`'s value ' is `true`.
54
-
- **isLogEvents**: whether log events json, default is false.
55
-
- **authCookie**: your auth cookie for AWS application load balancer auth cookie.
56
-
- **sessionTimeoutDuration**: the duration for session timeout millisecond, default is 1800000
39
+
Your `appId` and `endpoint` are already set up in it.
Current login user‘s attributes will be cached in localStorage, so the next time browser open you don't need to set all user's attribute again, of course you can update the current user's attribute when it changes.
96
79
80
+
#### Other configuration
81
+
In addition to the required `appId` and `endpoint`, you can configure other information to get more customized usage:
- **appId (Required)**: the app id of your project in control plane.
105
+
- **endpoint (Required)**: the endpoint path you will upload the event to AWS server.
106
+
- **sendMode**: EventMode.Immediate, EventMode.Batch, default is Immediate mode.
107
+
- **sendEventsInterval**: event sending interval millisecond, works only bath send mode, the default value is `5000`
108
+
- **isTrackPageViewEvents**: whether auto record page view events in browser, default is `true`
109
+
- **isTrackClickEvents**: whether auto record link click events in browser, default is `true`
110
+
- **isTrackSearchEvents**: whether auto record search result page events in browser, default is `true`
111
+
- **isTrackScrollEvents**: whether auto record page scroll events in browser, default is `true`
112
+
- **pageType**: the website type, `SPA` for single page application, `multiPageApp` for multiple page application, default is `SPA`. This attribute works only when the attribute `isTrackPageViewEvents`'s value is `true`.
113
+
- **isLogEvents**: whether log events json, default is false.
114
+
- **authCookie**: your auth cookie for AWS application load balancer auth cookie.
115
+
- **sessionTimeoutDuration**: the duration for session timeout millisecond, default is 1800000
116
+
117
+
#### Configuration update
118
+
You can update the default configuration after initializing the SDK. We now support updating the following parameters:
0 commit comments