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: README.md
+7Lines changed: 7 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -97,6 +97,13 @@ The SDK supports the operations `set`, `setOnce`, `unset`, and `add` on individu
97
97
amplitude.identify(identify);
98
98
```
99
99
100
+
5.`append`:this will append a value or values to a user property. If the user property does not have a value set yet, it will be initialized to an empty list before the newvalues are appended. If the user property has an existing value and it is not a list, it will be converted into a list with the newvalue appended.
101
+
102
+
```javascript
103
+
var identify = new amplitude.Identify().append('ab-tests', 'new-user-test').append('some_list', [1, 2, 3, 4, 'values']);
104
+
amplitude.identify(identify);
105
+
```
106
+
100
107
Note:if a user property is used in multiple operations on the same `Identify` object, only the first operation will be saved, and the rest will be ignored. Inthis example, only the set operation will be saved, and the add and unset will be ignored:
0 commit comments