# How to search / filter in contact by page hit or the page visited

**URL:** <https://forum.mautic.org/t/how-to-search-filter-in-contact-by-page-hit-or-the-page-visited/23810>\
**Category:** General Discussion\
**Created:** [April 20, 2022, 5:54pm UTC](https://forum.mautic.org/t/how-to-search-filter-in-contact-by-page-hit-or-the-page-visited/23810 "2022-04-20T17:54:25Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![techbill](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/techbill/32/8325_2.png) [@techbill](https://forum.mautic.org/u/techbill)\
**Post date:** [April 20, 2022, 5:54pm UTC](https://forum.mautic.org/t/how-to-search-filter-in-contact-by-page-hit-or-the-page-visited/23810/1 "2022-04-20T17:54:26Z")

</div>

I am trying to filter all contacts who have visited a certain page or with a page hit from our main website. We have the tracking on the main website but we couldn’t figure how to filter it in contact. We looked over this document and still can’t make head or tail of it … [Search | Mautic](https://docs.mautic.org/en/mautic-search)

What would the proper string to filter all contact that have visited a certain page (not mautic landing page) .

Thank you

---

<div class="post-metadata">

**Author:** ![pierre\_a](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/pierre_a/32/7031_2.png) [@pierre\_a](https://forum.mautic.org/u/pierre_a)\
**Post date:** [April 21, 2022, 5:07pm UTC](https://forum.mautic.org/t/how-to-search-filter-in-contact-by-page-hit-or-the-page-visited/23810/2 "2022-04-21T17:07:02Z")

</div>

Hello @techbill,

You can create a segment with the filter “Page visited” then choose “contains” and indicate your domain name as a value.  
I suggest you add a second filter “Email” with the value “not empty” to have only known contacts and not phantom contacts.

Can you tell me if this matches your search?

Pierre

---

<div class="post-metadata">

**Author:** ![techbill](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/techbill/32/8325_2.png) [@techbill](https://forum.mautic.org/u/techbill)\
**Post date:** [April 21, 2022, 6:37pm UTC](https://forum.mautic.org/t/how-to-search-filter-in-contact-by-page-hit-or-the-page-visited/23810/3 "2022-04-21T18:37:24Z")

</div>

I tried that and I don’t see Page visited in filter or :contains"

Here the screenshot of the filter

 ![Screen Shot 2022-04-21 at 1.35.59 PM](https://us1.discourse-cdn.com/flex020/uploads/mautic/original/2X/c/cf1a3fc08b701f230ec2319943ba9d90fd31f175.jpeg)

if I select Visit X URL then nothing else happens … There no “contains” selection or input box for me to fill it in or select from.

Am I overlooking something here?

---

<div class="post-metadata">

**Author:** ![techbill](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/techbill/32/8325_2.png) [@techbill](https://forum.mautic.org/u/techbill)\
**Post date:** [April 21, 2022, 6:38pm UTC](https://forum.mautic.org/t/how-to-search-filter-in-contact-by-page-hit-or-the-page-visited/23810/4 "2022-04-21T18:38:14Z")

</div>

I think it that damn bug again … Same one I had before when I select a filter then second box does not appear … sigh …

---

<div class="post-metadata">

**Author:** ![pierre\_a](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/pierre_a/32/7031_2.png) [@pierre\_a](https://forum.mautic.org/u/pierre_a)\
**Post date:** [April 21, 2022, 6:39pm UTC](https://forum.mautic.org/t/how-to-search-filter-in-contact-by-page-hit-or-the-page-visited/23810/5 "2022-04-21T18:39:02Z")

</div>

Can you try this ?

 ![Capture d’écran 2022-04-21 à 20.38.38](https://us1.discourse-cdn.com/flex020/uploads/mautic/original/2X/1/1a8f223cb27ece72820fdcf01196a0030a8f30d7.png)

---

<div class="post-metadata">

**Author:** ![techbill](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/techbill/32/8325_2.png) [@techbill](https://forum.mautic.org/u/techbill)\
**Post date:** [April 21, 2022, 6:40pm UTC](https://forum.mautic.org/t/how-to-search-filter-in-contact-by-page-hit-or-the-page-visited/23810/6 "2022-04-21T18:40:11Z")

</div>

yeah

the box is not appearing after I select “Visted X URL”

---

<div class="post-metadata">

**Author:** ![pierre\_a](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/pierre_a/32/7031_2.png) [@pierre\_a](https://forum.mautic.org/u/pierre_a)\
**Post date:** [April 21, 2022, 8:22pm UTC](https://forum.mautic.org/t/how-to-search-filter-in-contact-by-page-hit-or-the-page-visited/23810/7 "2022-04-21T20:22:12Z")

</div>

@techbill, can you try ;

`mautic:assets:generate`

and retry.

---

<div class="post-metadata">

**Author:** ![techbill](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/techbill/32/8325_2.png) [@techbill](https://forum.mautic.org/u/techbill)\
**Post date:** [April 21, 2022, 8:59pm UTC](https://forum.mautic.org/t/how-to-search-filter-in-contact-by-page-hit-or-the-page-visited/23810/8 "2022-04-21T20:59:29Z")

</div>

I tried that earlier and it didn’t fix it this time but it fix it before

> [@Contact Segment using tag working on compose Mautic instal?](https://forum.mautic.org/t/contact-segment-using-tag-working-on-compose-mautic-instal/22972/8):
>
> My original install was mySQL 5.6. New Mautic versions require 5.7. Hosting provider could not give me a timeframe for updating. That also was stopping me from updating my PHP to 7.4. (My Mautic version on my hosting account was 3.2.4)… In my original Mautic install, the segment filtering worked as you would expect it to.

I had that problem happened to me in previous version. I am on 4.2.1 now and it broke again.

---

<div class="post-metadata">

**Author:** ![pierre\_a](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/pierre_a/32/7031_2.png) [@pierre\_a](https://forum.mautic.org/u/pierre_a)\
**Post date:** [April 22, 2022, 12:45pm UTC](https://forum.mautic.org/t/how-to-search-filter-in-contact-by-page-hit-or-the-page-visited/23810/9 "2022-04-22T12:45:41Z")

</div>

Hello @techbill,

If you create a new segment do you have a good result (or not)?

Pierre

---

<div class="post-metadata">

**Author:** ![techbill](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/techbill/32/8325_2.png) [@techbill](https://forum.mautic.org/u/techbill)\
**Post date:** [April 22, 2022, 2:42pm UTC](https://forum.mautic.org/t/how-to-search-filter-in-contact-by-page-hit-or-the-page-visited/23810/10 "2022-04-22T14:42:03Z")

</div>

I am able to create segment now . after clearing cache in both mautic and browser

But what the page name? based on url address or head of page name? I tried page header name and it doesn’t filter it for me … I will try full url address to see if that works next

---

<div class="post-metadata">

**Author:** ![techbill](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/techbill/32/8325_2.png) [@techbill](https://forum.mautic.org/u/techbill)\
**Post date:** [April 22, 2022, 2:49pm UTC](https://forum.mautic.org/t/how-to-search-filter-in-contact-by-page-hit-or-the-page-visited/23810/11 "2022-04-22T14:49:40Z")

</div>

I got it sorted now ,

It’s. the “x page title” that what I was looking for …

But still need to figure and solve why my segment filter keep stop working once a while where I have to keep deleting cache folder in both mautic and browser to restore it.

---

<div class="post-metadata">

**Author:** ![pierre\_a](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/pierre_a/32/7031_2.png) [@pierre\_a](https://forum.mautic.org/u/pierre_a)\
**Post date:** [April 25, 2022, 3:50pm UTC](https://forum.mautic.org/t/how-to-search-filter-in-contact-by-page-hit-or-the-page-visited/23810/12 "2022-04-25T15:50:53Z")

</div>

Hello @techbill,

> [@techbill](#):
>
> But what the page name? based on url address or head of page name? I tried page header name and it doesn’t filter it for me … I will try full url address to see if that works next

For this my website ([https://www.webanyone.net/](https://www.webanyone.net/)).  
I use this filter “Visited URL X” with “regexp” and this value “webanyone\.net”  
The backslash “\” sign is to escape dot “.” sign.

On this segment, I see all contacts have visited one page of my website.  
**It’s work for you?**

Pierre
