## General Metrics
This section covers the general metrics used in Bloomreach Insights.
A session is a group of user interactions with your website that take place within a given time frame. These can be page views, queries, category page views, and product views.
A session ends:
After 30 minutes of inactivity.
When the user changes devices.
When the user enters the site from an external source, like a paid ad.
\*_By midnight, we understand a midnight in the GMT timezone._
If a user leaves the site but returns within 30 minutes on the same device, it is considered the same session.
**Query Session**: Session activity related to Site Search is called the Query session. It begins when a user searches on your site. The query session is treated as a separate session and ends when a visitor goes to a category page or enters a new query, which would start a new query session.
Visits are the number of sessions an entity was viewed at least once. So, if there are 100 sessions and 50 users visit page XYZ once, and 50 visit it twice, there are only 100 visits for that page.
Visits are a subset of sessions.
Exits are attributed to the last page the visitor was on before the session ended.
An entrance is where the user begins their journey on your site.
A bounce is attributed to a page where the user enters and leaves without any other interactions. Bounces as a subset of Entrances.
## Specific Metrics
This section covers the metrics that are more specific to Bloomreach Insights.
### NEXT Attribution
For **NEXT Attribution**, whatever action happened immediately before the Add to cart event gets 100% of the credit for conversion and revenue.
For example, the customer enters the Kitchen Category page, then goes to the Pots Category page. From the Pots Category page, they add a $50 steel pot to their cart. Then, the customer checks out.
In this example, the Pots category page will get $50 of NEXT attribution for the steel pot purchase since the Add to cart event occurred immediately after the Pots category page.
**Metric Purpose**: NEXT Attribution can be considered a buying metric. It helps determine how likely someone is going to Add to Cart or convert immediately next in their customer journey when they’re on a specific page.
**Entities attributed**: category pages, search pages, product or regular pages
### AFTER Attribution
For **AFTER Attribution**, all actions that happen before an Add to cart event get 100% of the credit for conversion and revenue.
Considering the example discussed above, both the Kitchen category page and the Pots category page will receive $50 of AFTER attribution for the steel pot purchase
**Metric Purpose:** AFTER Attribution can be used as a browsing metric. It helps determine if a specific page will lead to an Add to cart or conversion at some point in the customer’s journey.
**Entities attributed**: category pages
### Association score
The **Association score** is a metric that measures the relationship between entities on your site. It looks at the complete customer journey between products, categories, pages, and queries, and understands the strength of their relationship.
The association score is based on:
Co-views (the number of times elements are viewed together)
The order in which elements are viewed
The proximity of each entity to each other within the customer journey
The uniqueness and strength of the relationship between entities.
In this way, the association score covers more than just pages that are viewed within the same user session, but also looks at those pages as they relate to the customer’s overall journey on your site.
Association scores occur on a scale of **100 to 0**. The element with the highest association to a given entity will be given a 100 and everything else is assigned a number down to 0.