InitializationSection titled Initialization
The way our SDK works is by auto-starting with the application launch and attaching to the current process in order to intercept the events and gestures we are interested in.
ConfigurationSection titled Configuration
Once started, our SDK fetches its configuration from our servers.
Then, depending on the segmentation size (defined by our team when you sign a contract) and the user consent status, it will start collecting analytics data from system and user events it detects from the runtime.
See Session Replay Initialization to learn how Session Replay is initialized.
Data collectionSection titled Data collection
Analytics data collectionSection titled Analytics data collection
The SDK monitors the application lifecycle events, the view hierarchy, and generates data from the behavior of the app, the content of the screen and the user interactions.
These events are then locally stored, and eventually sent to our servers in batches. We then aggregate that data to create usable visual information into our Web Application, which you use to gather insights.
Session Replay data collectionSection titled Session Replay data collection
See Session Replay Initialization to learn how Session Replay data collection works.
Sending dataSection titled Sending data
Sending analytics dataSection titled Sending analytics data
Analytics data are sent in batches of maximum 50 events. Requests are triggered when network conditions allow for the server to be reached and:
- The current batch of events has reached 50
- Or the app is put in background
Our requests use lowPriority.
Sending Session Replay DataSection titled Sending Session Replay Data
See Session Replay Requests to learn more about how Session Replay data is sent.
Sending crash DataSection titled Sending crash Data
See Send Crash data to learn more about how crash data is sent.
Session definitionSection titled Session definition
A session represents a single period of user interaction in the app.
In Contentsquare, a session ends when the user has spent a certain amount of time outside the app. The SDK checks this when an
app start or
app show event is detected. This time spent outside the app, ending a session is set to 30 minutes by default. But it can be changed if it is requested.
If the app is put in the background or killed (intentionally by the user or by the OS) but the user comes back within 30 minutes, it will not end the session. These events are considered to be part of a session.
If the app is put in the background or killed (intentionally by the user or by the OS), it will not end the session. These events are considered to be part of a session.