core-outline 0.1.0 → 0.1.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/README.md +5 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -9,7 +9,7 @@ npm i core-outline
|
|
|
9
9
|
|
|
10
10
|
### Starting a new instance
|
|
11
11
|
|
|
12
|
-
var core = new CoreOutline(<
|
|
12
|
+
var core = new CoreOutline(<app_id>)
|
|
13
13
|
|
|
14
14
|
### To get the session details
|
|
15
15
|
var session_details = core.sessionDetails()
|
|
@@ -19,6 +19,9 @@ var session_details = core.sessionDetails()
|
|
|
19
19
|
"session_id":"<session_id>",
|
|
20
20
|
}
|
|
21
21
|
"""
|
|
22
|
+
### End current session
|
|
23
|
+
endCurrentSession()
|
|
24
|
+
|
|
22
25
|
# Tracking user actions
|
|
23
26
|
### Update current page
|
|
24
27
|
|
|
@@ -36,7 +39,7 @@ core.recordPurchase()
|
|
|
36
39
|
|
|
37
40
|
This function is to be used when a user clicks on one of the recommended actions items
|
|
38
41
|
|
|
39
|
-
core.recordItemClick(<
|
|
42
|
+
core.recordItemClick(<recommended_action_item_id>)
|
|
40
43
|
|
|
41
44
|
|
|
42
45
|
|