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
docs: Add setSessionId to reference website (#398)
* Added example and description for setSessionId method
* Pulled off master to update to latest version
* Fixing accidental deletion of a letter for setOptOut
Copy file name to clipboardExpand all lines: src/amplitude-client.js
+8Lines changed: 8 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -886,6 +886,14 @@ AmplitudeClient.prototype.setOptOut = function setOptOut(enable) {
886
886
}
887
887
};
888
888
889
+
/**
890
+
* Set a custom Session ID for the current session.
891
+
* Note: This is not recommended unless you know what you are doing because the Session ID of a session is utilized for all session metrics in Amplitude.
892
+
* The Session ID to set for the current session must be in milliseconds since epoch (Unix Timestamp).
0 commit comments