# Segmentation by URL

**URL:** <https://forum.mautic.org/t/segmentation-by-url/26688>\
**Category:** Product Support\
**Created:** [January 10, 2023, 7:31am UTC](https://forum.mautic.org/t/segmentation-by-url/26688 "2023-01-10T07:31:13Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![saikat](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/saikat/32/6368_2.png) [@saikat](https://forum.mautic.org/u/saikat)\
**Post date:** [January 10, 2023, 7:31am UTC](https://forum.mautic.org/t/segmentation-by-url/26688/1 "2023-01-10T07:31:13Z")

</div>

Hello,

I want to segment users who visited a particular URL ( like [.xyz Domain Names | Join Generation XYZ](http://xyz.com/mypage.php)) within 5 days. The user should be removed from the segment if he visited more than 5 days back.

Can someone please help to configure this?

---

<div class="post-metadata">

**Author:** ![joeyk](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/joeyk/32/11164_2.png) [@joeyk](https://forum.mautic.org/u/joeyk)\
**Post date:** [January 10, 2023, 4:39pm UTC](https://forum.mautic.org/t/segmentation-by-url/26688/2 "2023-01-10T16:39:21Z")

</div>

Hi, you can’t do it out of the box with Mautic.

You can either:

1. visited that page EVER
2. visited ANY page in the past 5 days.

Joey

---

<div class="post-metadata">

**Author:** ![asad786](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/asad786/32/8990_2.png) [@asad786](https://forum.mautic.org/u/asad786)\
**Post date:** [January 13, 2023, 5:35am UTC](https://forum.mautic.org/t/segmentation-by-url/26688/3 "2023-01-13T05:35:58Z")

</div>

You can create two segments , and then create a campaign and then in that campaign set a action with delay of 5 days that will move contact from the main segment to another segment.

And set a filter in main segment that contains page hit url contains a word and set the word in that column, So that if user visited that url again so user can come into this segment again.
