Skip to content

Commit 833f1aa

Browse files
committed
update Readme
1 parent 8acdd5a commit 833f1aa

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,7 @@ You can configure Amplitude by passing an object as the third argument to the `i
102102
| batchEvents | If `true`, events are batched together and uploaded only when the number of unsent events is greater than or equal to `eventUploadThreshold` or after `eventUploadPeriodMillis` milliseconds have passed since the first unsent event was logged. | `false` |
103103
| eventUploadThreshold | Minimum number of events to batch together per request if `batchEvents` is `true`. | 30 |
104104
| eventUploadPeriodMillis | Amount of time in milliseconds that the SDK waits before uploading events if `batchEvents` is `true`. | 30*1000 |
105+
| deviceId | Custom device ID to set | "" |
105106

106107

107108
# Advanced #
@@ -113,3 +114,7 @@ By default, no version name is set. You can specify a version name to distinguis
113114
amplitude.setVersionName("VERSION_NAME_HERE");
114115

115116
User IDs are automatically generated and stored in cookies if not specified.
117+
118+
Device IDs are generated randomly, although you can define a custom device ID setting it as a configuration option or by calling:
119+
120+
amplitude.setDeviceId("CUSTOM_DEVICE_ID");

0 commit comments

Comments
 (0)