Skip to main content
All CollectionsRayn Air IntroductionCohorts
Working with User Cohorts on Web
Working with User Cohorts on Web
Niels Baarsma avatar
Written by Niels Baarsma
Updated over a week ago

What are User Cohorts

Users that show similar behaviour or have similar attributes can be grouped together in cohorts.

Data collection and storage

In order to create User Cohorts, Rayn JS collects user behavioural measurements. The user data is processed and stored locally in the browser as well as being sent to Rayn user data store. All unique user data stored in the User Data Store is aggregated and deleted after 24 hours.

Real Time Cohorts

Speed and efficiency are key in the world of online data activation for the purpose of advertising and content optimization. Rayn JS provides a solution to for high speed generation and access to user cohorts. In order to support near real time activation of cohort data, Rayn JS creates "Real Time Cohorts". Real Time Cohorts are generated in the user's browser by Rayn JS using page context and user behaviour measurements. The Real Time Cohorts are stored in local storage and act as "temporary cohorts" until the user cohorts are updated by the server side Enhanced Cohorts.

Enhanced Cohorts

User behavioural measurements are stored in the Rayn User Data Store where they are aggregated on a daily basis into Enhanced Cohorts. Predefined conditions within Rayn determine the rules by which users are grouped based on similar traits and/or behaviour. Rayn JS will retrieve the Enhanced Cohorts and update the Cohorts in Local Storage on every call if any updates are available. It can take up to 24 hours for the server side cohorts to be processed. When a user returns within 24 hours the local storage is updated with the enhanced cohorts. Read more about Enhanced Cohorts here.

cohorts flow.png

Retrieving Cohort data

After generation the cohorts are stored in local storage and can be retrieved using the JS API. Read more on interacting with the JS API.

Did this answer your question?