# Goals- how to track all child page visits

**URL:** <https://community.piwik.pro/t/goals-how-to-track-all-child-page-visits/962>\
**Category:** Data collection and tags\
**Created:** [September 6, 2022, 11:20am UTC](https://community.piwik.pro/t/goals-how-to-track-all-child-page-visits/962 "2022-09-06T11:20:59Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kyle\_Campbell](https://dub1.discourse-cdn.com/flex005/user_avatar/community.piwik.pro/kyle_campbell/32/715_2.png) [@Kyle\_Campbell](https://community.piwik.pro/u/Kyle_Campbell)\
**Post date:** [September 6, 2022, 11:20am UTC](https://community.piwik.pro/t/goals-how-to-track-all-child-page-visits/962/1 "2022-09-06T11:20:59Z")

</div>

I know it’s easy to see all the child page visits in metrics, but we would like to register all child page visits as a goal.

Currently we’re using _URL Contains_: `https://example.com/parent/.*` but this isn’t working. What kind of syntax should we be using?

---

<div class="post-metadata">

**Author:** ![kuba](https://dub1.discourse-cdn.com/flex005/user_avatar/community.piwik.pro/kuba/32/7_2.png) [@kuba](https://community.piwik.pro/u/kuba)\
**Post date:** [September 6, 2022, 3:36pm UTC](https://community.piwik.pro/t/goals-how-to-track-all-child-page-visits/962/2 "2022-09-06T15:36:55Z")

</div>

Please try with `https://example.com/parent/`. If you use `contains`, you don’t have to go with regular expressions.
