# No page title option for trigger conditions

**URL:** <https://community.piwik.pro/t/no-page-title-option-for-trigger-conditions/3737>\
**Category:** Data collection and tags\
**Created:** [March 4, 2024, 10:54am UTC](https://community.piwik.pro/t/no-page-title-option-for-trigger-conditions/3737 "2024-03-04T10:54:27Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![nikitasfilosofof](https://dub1.discourse-cdn.com/flex005/user_avatar/community.piwik.pro/nikitasfilosofof/32/4630_2.png) [@nikitasfilosofof](https://community.piwik.pro/u/nikitasfilosofof)\
**Post date:** [March 4, 2024, 10:54am UTC](https://community.piwik.pro/t/no-page-title-option-for-trigger-conditions/3737/1 "2024-03-04T10:54:27Z")

</div>

We recently set up SPA tracking where all ‘pages’/screens under our app’s /onboarding are sent with titles using:

\_paq.push([“trackPageView”, ⁠ {internal name for page}⁠]);

That works great and I can see the distinct page views with their titles on the basic reports.

Now i want to create tags that get triggered on these SPA pages.

But, when I create a Page View trigger in the tag manager, there is no option to fire on Page Title.

If it is missing for some reason,I am happy to pass the page title as a variable, however it is unclear to me how I can catch the page title pushed here \_paq.push([“trackPageView”, ⁠ {internal name for page}⁠]);

---

<div class="post-metadata">

**Author:** ![anthonybartczak](https://dub1.discourse-cdn.com/flex005/user_avatar/community.piwik.pro/anthonybartczak/32/2430_2.png) [@anthonybartczak](https://community.piwik.pro/u/anthonybartczak)\
**Post date:** [March 4, 2024, 12:32pm UTC](https://community.piwik.pro/t/no-page-title-option-for-trigger-conditions/3737/2 "2024-03-04T12:32:33Z")

</div>

Hi @nikitasfilosofof,

Have you tried calling this before `trackPageView`?

> **[API](https://developers.piwik.pro/en/latest/data_collection/web/javascript_tracking_client/api.html#setDocumentTitle)**
>
> The following API allows the user to: track page views, track visits on multiple domains and subdomains, track e-commerce events (successful orders, cart changes, product and category views), track...

---

<div class="post-metadata">

**Author:** ![nikitasfilosofof](https://dub1.discourse-cdn.com/flex005/user_avatar/community.piwik.pro/nikitasfilosofof/32/4630_2.png) [@nikitasfilosofof](https://community.piwik.pro/u/nikitasfilosofof)\
**Post date:** [March 4, 2024, 12:55pm UTC](https://community.piwik.pro/t/no-page-title-option-for-trigger-conditions/3737/3 "2024-03-04T12:55:10Z")

</div>

No, but if that’s the only solution we’ll work with that!

Can you explain why it’s not possible to trigger by page title or other parameters parsed in the trackPageView method?

---

<div class="post-metadata">

**Author:** ![anthonybartczak](https://dub1.discourse-cdn.com/flex005/user_avatar/community.piwik.pro/anthonybartczak/32/2430_2.png) [@anthonybartczak](https://community.piwik.pro/u/anthonybartczak)\
**Post date:** [March 4, 2024, 1:08pm UTC](https://community.piwik.pro/t/no-page-title-option-for-trigger-conditions/3737/4 "2024-03-04T13:08:16Z")

</div>

> [@nikitasfilosofof](#):
>
> Can you explain why it’s not possible to trigger by page title or other parameters parsed in the trackPageView method?

Actually, I misunderstood your question there because it’s true - you can use `trackPageView` to add a custom page title (just like you did there). You can use the method I mentioned in case you want to overwrite every event before the page reloads. Sorry for the mix-up.

> why it’s not possible to trigger by page title

I think it’s just a missing feature, I’ll add a feature request for this. For now, it’s best to create a custom variable in the Tag Manager like I describe here. You’ll be able to add the variable in the trigger conditions.

> [@Page scroll report: How to achieve this?](https://community.piwik.pro/t/page-scroll-report-how-to-achieve-this/3650/5):
>
> Create a new TM variable: Add a new event custom dimension Add it to the Piwik PRO tracking tag: (I’ll answer the rest in a different response)

---

<div class="post-metadata">

**Author:** ![nikitasfilosofof](https://dub1.discourse-cdn.com/flex005/user_avatar/community.piwik.pro/nikitasfilosofof/32/4630_2.png) [@nikitasfilosofof](https://community.piwik.pro/u/nikitasfilosofof)\
**Post date:** [March 4, 2024, 1:14pm UTC](https://community.piwik.pro/t/no-page-title-option-for-trigger-conditions/3737/5 "2024-03-04T13:14:43Z")

</div>

Ok, I was about to ask how will I even use the document.title.

Ideally we would all page properties in the Page View trigger conditions, as you said a missing feature.

Thank you for the quick help!

 ![Screenshot 2024-03-04 at 14.12.41](https://europe1.discourse-cdn.com/flex005/uploads/piwikpro/original/2X/a/a08581157264e8e71b9ca5f2749c6daad8039bac.png)
