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
Execute the following script to Generate `clickstream-web-x.x.x.tgz` zip package, which will be located in the project root folder.
27
13
```bash
28
-
cdclickstream-web&& npm run build && npm run pack
14
+
npm install @aws/clickstream-web
29
15
```
30
16
31
-
Copy the `clickstream-web-x.x.x.tgz` into your project, then execute the following script in your project root folder to install the SDK.
32
-
```bash
33
-
npm install ./clickstream-web-x.x.x.tgz
34
-
```
35
-
Note: Please correct the SDK version and change the path to where the `clickstream-web-x.x.x.tgz` file is located.
36
-
37
17
### Initialize the SDK
38
18
You need to configure the SDK with default information before using it. Copy your configuration code from your clickstream solution control plane, the configuration code should look like as follows. You can also manually add this code snippet and replace the values of appId and endpoint after you registered app to a data pipeline in the Clickstream Analytics solution console.
@@ -123,12 +105,14 @@ Here is an explanation of each property:
123
105
-**isLogEvents**: whether to print out event json for debugging, default is false.
124
106
-**authCookie**: your auth cookie for AWS application load balancer auth cookie.
125
107
-**sessionTimeoutDuration**: the duration for session timeout millisecond, default is 1800000
108
+
-**searchKeyWords**: the customized Keywords for trigger the `_search` event, by default we detect `q`, `s`, `search`, `query` and `keyword` in query parameters.
109
+
-**domainList**: if your website cross multiple domain, you can customize the domain list. The `_outbound` attribute of the `_click` event will be true when a link leads to a website that's not a part of your configured domain.
126
110
127
111
#### Configuration update
128
112
You can update the default configuration after initializing the SDK, below are the additional configuration options you can customize.
Open your terminal window, at the root project folder to execute:
131
+
Clone this repository locally, execute the following script to generate `aws-clickstream-web-x.x.x.tgz` zip package, which will be located in the project root folder.
132
+
```bash
133
+
cd clickstream-web && npm run pack
134
+
```
149
135
136
+
Copy the `aws-clickstream-web-x.x.x.tgz` into your project, then execute the following script in your project root folder to install the SDK.
150
137
```bash
151
-
npmrunbuild
138
+
npm install ./aws-clickstream-web-x.x.x.tgz
152
139
```
140
+
Note: Please correct the SDK version and change the path to where the `aws-clickstream-web-x.x.x.tgz` file is located.
0 commit comments