# Visited URL not firing in campaign or segment

**URL:** <https://forum.mautic.org/t/visited-url-not-firing-in-campaign-or-segment/32050>\
**Category:** Product Support\
**Created:** [May 13, 2024, 12:26am UTC](https://forum.mautic.org/t/visited-url-not-firing-in-campaign-or-segment/32050 "2024-05-13T00:26:33Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![merlin7c](https://avatars.discourse-cdn.com/v4/letter/m/edb3f5/32.png) [@merlin7c](https://forum.mautic.org/u/merlin7c)\
**Post date:** [May 13, 2024, 12:26am UTC](https://forum.mautic.org/t/visited-url-not-firing-in-campaign-or-segment/32050/1 "2024-05-13T00:26:33Z")

</div>

**Your software**  
My Mautic version is:5.04  
My PHP version is:8.1  
My Database type and version is:10.5.17-MariaDB-cll-lve

**Your problem**  
My problem is:  
The problem I have is there is a step in the campaign where if they have visited this page they will be put into a different segment.

I am using a condition instead of a trigger action because I only need to know if they have visited a certain url. I am looking for the contact to hit the payment confirmation page because they will only get to that page via going through the checkout process and then I need them in a segment I can identify as having paid.

Mautic sees the page hit, but after the 10 minute wait (part of the campaign condition I am using for a page visit) the contact is not moved to the new segment.

I manually run the cron jobs so I don’t have to wait.

I then tried to add them to the segment via a url visit filter and it does not work either.

I am at a complete loss as what to try next.

I also get an internal error 500 when I try to add a radio group to a form.

Any help would be greatly appreciated

These errors are showing in the log:

Steps I have tried to fix the problem:

---

<div class="post-metadata">

**Author:** ![kuzmanyy](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/kuzmanyy/32/390_2.png) [@kuzmanyy](https://forum.mautic.org/u/kuzmanyy)\
**Post date:** [May 13, 2024, 9:08am UTC](https://forum.mautic.org/t/visited-url-not-firing-in-campaign-or-segment/32050/2 "2024-05-13T09:08:49Z")

</div>

Do you mean campaign decision Visits a page?  
Decision are triggered on action (in the case visit a page), do not need trigger command. Do you have properly set tracking pixel? Are you logged out from Mautic?

---

<div class="post-metadata">

**Author:** ![merlin7c](https://avatars.discourse-cdn.com/v4/letter/m/edb3f5/32.png) [@merlin7c](https://forum.mautic.org/u/merlin7c)\
**Post date:** [May 13, 2024, 10:57am UTC](https://forum.mautic.org/t/visited-url-not-firing-in-campaign-or-segment/32050/3 "2024-05-13T10:57:53Z")

</div>

Yes that is correct, because the payment confirmation page is at the end of the payment checkout and by using that url I can confirm they have paid.

I see the contact hit the page and there are 3 of us testing and the other 2 don’t have login details so even if mine didn’t work I would presume the other 2 would.

I have pasted the tracking pixel on the payment confirmation page and mautic sees the contact hit that page, but they don’t change segments.

I also tried changing their segment based on a filter of visit url x and that does not work either.

It seems to stop as soon as mautic sees the page hit the contact does not progress any further.

---

<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:** [May 14, 2024, 6:54am UTC](https://forum.mautic.org/t/visited-url-not-firing-in-campaign-or-segment/32050/4 "2024-05-14T06:54:17Z")

</div>

Does the visit show up in the contac’s timeline?

---

<div class="post-metadata">

**Author:** ![merlin7c](https://avatars.discourse-cdn.com/v4/letter/m/edb3f5/32.png) [@merlin7c](https://forum.mautic.org/u/merlin7c)\
**Post date:** [May 14, 2024, 2:28pm UTC](https://forum.mautic.org/t/visited-url-not-firing-in-campaign-or-segment/32050/5 "2024-05-14T14:28:45Z")

</div>

yes, I see the page hit in the contact history and then nothing else. I don’t see the next step show up, it is like the campaign just stops.

---

<div class="post-metadata">

**Author:** ![adiux](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/adiux/32/5793_2.png) [@adiux](https://forum.mautic.org/u/adiux)\
**Post date:** [May 15, 2024, 9:14am UTC](https://forum.mautic.org/t/visited-url-not-firing-in-campaign-or-segment/32050/6 "2024-05-15T09:14:47Z")

</div>

Do you use a URL filter for the campaign? Could that be wrong?  
What 500er error are you getting?

---

<div class="post-metadata">

**Author:** ![merlin7c](https://avatars.discourse-cdn.com/v4/letter/m/edb3f5/32.png) [@merlin7c](https://forum.mautic.org/u/merlin7c)\
**Post date:** [May 15, 2024, 10:56am UTC](https://forum.mautic.org/t/visited-url-not-firing-in-campaign-or-segment/32050/7 "2024-05-15T10:56:02Z")

</div>

I am not getting any errors and that is the problem so I have been trying to find another way to accomplish this task as it is the only issue stopping it from going live.

I have found a workaround. I added a 100 points to anyone who hit that page because it is the payment confirmation page people shouldn’t ended up there unless they have made a payment. I then added a trigger to change segments to the paid segment for anyone with more than 90 points and it seems to work fine.

I have no idea why it wouldn’t work through the campaign but hey I am getting the result I need.

Thanks for everyone’s help.
