Skip to content

Commit 720a28c

Browse files
committed
Merge remote-tracking branch 'origin/master'
2 parents d96c81e + 569088e commit 720a28c

File tree

2 files changed

+77
-1
lines changed

2 files changed

+77
-1
lines changed

documentation/api.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ This documentation is organized as following:
117117

118118
**Parameters**:
119119

120-
{object} **user**: A plain object specifying the user information the activity belongs to. More information about the structure can be found [here](TODO).
120+
{object} **user**: A plain object specifying the user information the activity belongs to. More information about the structure can be found [here](./user.md).
121121

122122
{string|null} **type**: The type of the activity collected, i.e., one of *search*, *login*, *logout*, *addToCart*, *removeFromCart*, *checkOut*, *selectProduct*, or *other*. If not specified, the default *other* will be used.
123123

documentation/user.md

Lines changed: 76 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
1+
## User Field Documentation
2+
3+
Breinify supports various user properties that you can include in the analytics.
4+
5+
### Example of full user info
6+
7+
```javascript
8+
var user = {
9+
'email' : 'johndoe@gmail.com',
10+
'firstName' : 'John',
11+
'lastName' : 'Doe',
12+
'dateOfBirth' : new Date(1985,6,30),
13+
'deviceId' : 'AAAAAAAAA-BBBB-CCCC-1111-222222220000',
14+
'md5Email' : '761cd16b141770ecb0bbb8a4e5962d16',
15+
'sessionId' : 'SID:ANON:w3.org:j6oAOxCWZ'
16+
}
17+
```
18+
19+
### Fields
20+
21+
#### Email
22+
23+
Attribute key: `email`
24+
25+
Example value: `johndoe@gmail.com`
26+
27+
Description: The email address of the current user, if known.
28+
29+
#### First Name
30+
31+
Attribute key: `firstName`
32+
33+
Example value: `John`
34+
35+
Description: The first name of the current user, if known.
36+
37+
#### Last Name
38+
39+
Attribute String: `lastName`
40+
41+
Example: `Doe`
42+
43+
Description: The last name of the current user, if known.
44+
45+
#### Date of Birth
46+
47+
Attribute key: `dateOfBirth`
48+
49+
Example value: `new Date(1985, 6, 30)`
50+
51+
Description: The email address of the current user, if known.
52+
53+
#### Device ID
54+
55+
Attribute key: `deviceId`
56+
57+
Example value: `AAAAAAAAA-BBBB-CCCC-1111-222222220000`
58+
59+
Description: The current user's device's id, if known.
60+
61+
#### MD5 Email
62+
63+
Attribute key: `md5Email`
64+
65+
Example value: `761cd16b141770ecb0bbb8a4e5962d16`
66+
67+
Description: A hashed version of the user's email address.
68+
69+
70+
#### Session ID
71+
72+
Attribute key: `sessionId`
73+
74+
Example value: `SID:ANON:w3.org:j6oAOxCWZ`
75+
76+
Description: The user's [Session Id](https://en.wikipedia.org/wiki/Session_ID).

0 commit comments

Comments
 (0)