From 39ce8fc1b9974e6362d75826b670f918f285cb91 Mon Sep 17 00:00:00 2001 From: kdastan Date: Tue, 14 Dec 2021 15:26:18 +0600 Subject: [PATCH] feat: add runNewSessionStartCallback on new sessionId on log event --- src/amplitude-client.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/amplitude-client.js b/src/amplitude-client.js index 14f4af5b..0fcaae41 100644 --- a/src/amplitude-client.js +++ b/src/amplitude-client.js @@ -1317,6 +1317,7 @@ AmplitudeClient.prototype._logEvent = function _logEvent( eventTime - this._lastEventTime > this.options.sessionTimeout ) { this._sessionId = eventTime; + this._runNewSessionStartCallbacks(); } this._lastEventTime = eventTime; _saveCookieData(this);