# Understanding segment scope

**URL:** <https://community.piwik.pro/t/understanding-segment-scope/2955>\
**Category:** Reports and working with data\
**Created:** [September 25, 2023, 12:21pm UTC](https://community.piwik.pro/t/understanding-segment-scope/2955 "2023-09-25T12:21:09Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![davidkrogstrup](https://dub1.discourse-cdn.com/flex005/user_avatar/community.piwik.pro/davidkrogstrup/32/1078_2.png) [@davidkrogstrup](https://community.piwik.pro/u/davidkrogstrup)\
**Post date:** [September 25, 2023, 12:21pm UTC](https://community.piwik.pro/t/understanding-segment-scope/2955/1 "2023-09-25T12:21:09Z")

</div>

I´m trying to gain a clear understanding of how segment scope works in Piwik PRO.

On this page:

> **[Group visitors into segments | Piwik PRO help center](https://help.piwik.pro/support/reports/segments/)**
>
> Segments let you divide your visitors into smaller groups and analyze them separately in reports and on dashboards. By breaking down your data, you can gain insights that would be difficult to discover when looking at all your data together. For...

I find this statement:  
“Segments use two scopes: event and session. The scope is applied automatically on the basis of the segment definition, report definition and filters used in a report.”

Does this mean that if I apply eg. “page url” as “event dimensions” to a segment, then the scope will automatically be of event?

Is it not possible in any way to create a segment containing full session data for all sessions where the user visited a specific page during their session?

---

<div class="post-metadata">

**Author:** ![asinior](https://dub1.discourse-cdn.com/flex005/user_avatar/community.piwik.pro/asinior/32/1905_2.png) [@asinior](https://community.piwik.pro/u/asinior)\
**Post date:** [September 26, 2023, 12:40pm UTC](https://community.piwik.pro/t/understanding-segment-scope/2955/2 "2023-09-26T12:40:21Z")

</div>

Hi,  
If you use page URL then dimensions will be filtered out by event scope dimensions. As for session scope dimensions you would have to include Session exit URL, Session entry URL and Session second URL in your segments to be able to filter it out by session scope dimensions. You can see the list of available dimensions here: [List of dimensions and metrics | Piwik PRO help center](https://help.piwik.pro/support/reports/metrics-dimensions/)

---

<div class="post-metadata">

**Author:** ![davidkrogstrup](https://dub1.discourse-cdn.com/flex005/user_avatar/community.piwik.pro/davidkrogstrup/32/1078_2.png) [@davidkrogstrup](https://community.piwik.pro/u/davidkrogstrup)\
**Post date:** [September 26, 2023, 7:42pm UTC](https://community.piwik.pro/t/understanding-segment-scope/2955/3 "2023-09-26T19:42:43Z")

</div>

Thank you very much for your answer.

Just to be sure, that I´ve understood this properly.

So if I only use session-scoped dimensions in a segment, then I´ll get ALL data from the sessions, that matches my segment rules?

And if I use one or more event-scoped dimensions in a segment, then I´ll not retrieve full session data but only data for the events, that matches my segment rules?

---

<div class="post-metadata">

**Author:** ![asinior](https://dub1.discourse-cdn.com/flex005/user_avatar/community.piwik.pro/asinior/32/1905_2.png) [@asinior](https://community.piwik.pro/u/asinior)\
**Post date:** [September 28, 2023, 8:40am UTC](https://community.piwik.pro/t/understanding-segment-scope/2955/4 "2023-09-28T08:40:33Z")

</div>

This sounds plausible, but feel free to test all different options in your segments and see if they give you the expected outcome.

---

<div class="post-metadata">

**Author:** ![davidkrogstrup](https://dub1.discourse-cdn.com/flex005/user_avatar/community.piwik.pro/davidkrogstrup/32/1078_2.png) [@davidkrogstrup](https://community.piwik.pro/u/davidkrogstrup)\
**Post date:** [September 28, 2023, 10:43am UTC](https://community.piwik.pro/t/understanding-segment-scope/2955/5 "2023-09-28T10:43:55Z")

</div>

Thanks for your answers 😉
