Segment "Visited X URL" filter not working

Your software
My Mautic version is: v5.0.2
My PHP version is: 8.0.24
My Database type and version is: MySQL 10.4.34-MariaDB

Your problem
My problem is:
I am trying to create a segment filter to add contacts in the segment if they visit a specific URL. I am using Google Tag Manager to send the event information to Mautic using the Mautic Tag Template. I am using the “Page URL” field through the tag template to send a custom URL. For the segment, the filter is like the following:
“Visit X URL” contains click-event/add-points/
However, the contacts with the Page URL field containing the mentioned URL are not being added to the segment. is it because the segment looks for other than the “Page URL” field to add the contacts or how the segment filter works so I can modify my workflow?

There is currently no way to add a page view event via API. Do you send this via the client side?