# How to track custom (any) event eg web link click

**URL:** <https://forum.mautic.org/t/how-to-track-custom-any-event-eg-web-link-click/20188>\
**Category:** Product Support\
**Created:** [July 16, 2021, 12:32pm UTC](https://forum.mautic.org/t/how-to-track-custom-any-event-eg-web-link-click/20188 "2021-07-16T12:32:33Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![samtuke](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/samtuke/32/5459_2.png) [@samtuke](https://forum.mautic.org/u/samtuke)\
**Post date:** [July 16, 2021, 12:32pm UTC](https://forum.mautic.org/t/how-to-track-custom-any-event-eg-web-link-click/20188/1 "2021-07-16T12:32:33Z")

</div>

**Your software**  
My Mautic version is: 3.3.3  
My PHP version is: 7.4.21

**Your problem**  
My problem is: I want to track custom events, in my case visiting a particular website page on a Wordpress site, and use this tracking to manage points assignment and segmentation.

Is it possible to add custom event tracking like this, eg so it appears in Points-\>Manage Actions-\>Add New-\>When a contact…-\>(e.g. visits page X) ?

Thanks.

---

<div class="post-metadata">

**Author:** ![robm](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/robm/32/260_2.png) [@robm](https://forum.mautic.org/u/robm)\
**Post date:** [July 16, 2021, 1:33pm UTC](https://forum.mautic.org/t/how-to-track-custom-any-event-eg-web-link-click/20188/2 "2021-07-16T13:33:25Z")

</div>

Can you explain better what you need?

U can track all WordPress actions, assign tags based on URL visits, assign points based on url visits.

I think you are talking about lead scoring?

---

<div class="post-metadata">

**Author:** ![samtuke](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/samtuke/32/5459_2.png) [@samtuke](https://forum.mautic.org/u/samtuke)\
**Post date:** [July 16, 2021, 6:12pm UTC](https://forum.mautic.org/t/how-to-track-custom-any-event-eg-web-link-click/20188/3 "2021-07-16T18:12:36Z")

</div>

Thanks @robm. I need to track whether our Download page was visited by a contact who has already filled out a webform. Their profile should be updated to reflect this (maybe add them to a segment?), and I should be able to add campaign logic to trigger an email based on whether they have or have not visited the Download page.

I’m using the Mautic Wordpress plugin; do I need to add a sepcific tracking pixel to the Download page, or just put the page URL into the campaigns builder and “Decision → Visits a page”?

---

<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:** [July 19, 2021, 8:00am UTC](https://forum.mautic.org/t/how-to-track-custom-any-event-eg-web-link-click/20188/4 "2021-07-19T08:00:40Z")

</div>

You just need the ‘Visits a Page’ decision. If you are using the WP plugin, it already tracks your visits.

---

<div class="post-metadata">

**Author:** ![robm](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/robm/32/260_2.png) [@robm](https://forum.mautic.org/u/robm)\
**Post date:** [July 19, 2021, 11:36am UTC](https://forum.mautic.org/t/how-to-track-custom-any-event-eg-web-link-click/20188/5 "2021-07-19T11:36:03Z")

</div>

Yeah, like @joeyk says, if you have the tracking code installed correctly, or you use the Mautic WP plugin, then all page visits will be recorded and allocated to eithe a known or anonymous contact.

U can then use the campaign ‘Visits a Page’ decision to trigger any action you want. The WP plugin will also let you assign a tag to page visitor through the use of a short code independent of a campaign action. U can also add points based on URL visit via the points module trigger options
