A segment’s scope determines the type of filter applied to the data. You can customize a segment’s scope by clicking the scope name in the scope list and editing the scope details.
There are three types of segment scope:
- Events: Return only events that match the criteria
- Sessions: Return all events in the sessions that match the criteria
- Users: Return all events in all sessions for all users that match the criteria
When applying the session or user scope to a segment, use caution when also using negative operators. The example below illustrates the subtle difference.
|equals||Exact event match||ANY one event in the SESSION matches||ANY one event in ANY one SESSION for the USER|
|does not equal||Events that do not match||ALL events in the SESSION do not match||ALL events in ALL SESSIONS for the USER does not match|
|Stage equals ‘a’ where ‘a’ is Add to Cart||Events that have Add To Cart||Session has at least one event with Add to Cart||User has at least one session with at least one event with Add to Cart|
|Stage does not equal ‘a’ where ‘a’ is Add to Cart||Events that do not have Add to Cart||Session has no events with Add to Cart||User has no sessions with Add to Cart|