Hey folks,
I am not able to set the session_id manually using the js sdk. Is there any way where i can change the session id.
Hey folks,
I am not able to set the session_id manually using the js sdk. Is there any way where i can change the session id.
I use this command to manually set session ID when I’m doing testing… maybe it helps for your use case as well. Replace 123456789 with the session ID you want to use.
amplitude.getInstance().setSessionId(123456789);
Yeah it worked, i was passing the session_id as a string earlier now i passed it as an integer to the setSessionId() method. Thanks for your help
If you don't have an Amplitude account, you can create an Amplitude Starter account for free and enjoy direct access to the Community via SSO. Create an Amplitude account. You can also create a Guest account below!
If you don't have an Amplitude account, you can create an Amplitude Starter account for free and enjoy direct access to the Community via SSO. Create an Amplitude account. Want to sign up as a guest? Create a Community account.
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.