How to configure my app such that when a user session starts or ends an event is sent or recorded. Right now, I have initialized my aplitude using amplitude.getInstance().init().
Hi
If you are using any of the SDKs, then Amplitude can track the Start Session
and End Session
events using the beginning and ending times of each session by session ID.
You can easily turn on tracking for these events by adding the following lines of code before initializing the SDK:
More on this here . Hope this helps.
Reply
Welcome to the Amplitude Community!
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're a current customer, select the domain you use to sign in with Amplitude.
analytics.amplitude.com analytics.eu.amplitude.comWelcome to the Amplitude Community!
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.
If you're a current customer, select the domain you use to sign in with Amplitude.
analytics.amplitude.com analytics.eu.amplitude.comEnter your E-mail address. We'll send you an e-mail with instructions to reset your password.