Skip to main content

Hello Amplitude community, 

I am looking for your advices for how to track number of sessions without having users’ consent to collect their data?. 

We do not need any context or relation of the sessions with any other data. We only need to know the absolute number of sessions of users reaching the website and the app. 
 

  1. is it possible to track number of sessions without having users’ consent to collect their data? and how?
  2. does Amplitude only track sessions if a user_id is generated/provided?
  3. would HTTP API implementation support us to track the absolute number of sessions?

​​​​​​​


looking forward for your suggestions, thanks in advance

 

@Tatiana To my understanding you want to track sessions but not track any events/properties when the user does not consent to cookies.

In this case when a user does not consent you can still use the SDK to track events but you will need to disable cookies and the SDK will fallback to using LocalStorage as desribed, here. The SDK will still be able to track sessions, events, and identification of the user.


Reply