# Page view events not firing on page changes through the javascript history api (e.g. window.history.pushState())

**URL:** <https://forum.mautic.org/t/page-view-events-not-firing-on-page-changes-through-the-javascript-history-api-e-g-window-history-pushstate/25464>\
**Category:** Product Support\
**Created:** [September 21, 2022, 2:47am UTC](https://forum.mautic.org/t/page-view-events-not-firing-on-page-changes-through-the-javascript-history-api-e-g-window-history-pushstate/25464 "2022-09-21T02:47:25Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![isleshocky77](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/isleshocky77/32/8316_2.png) [@isleshocky77](https://forum.mautic.org/u/isleshocky77)\
**Post date:** [September 21, 2022, 2:47am UTC](https://forum.mautic.org/t/page-view-events-not-firing-on-page-changes-through-the-javascript-history-api-e-g-window-history-pushstate/25464/1 "2022-09-21T02:47:26Z")

</div>

Does anyone know if Mautic’s javascript client automatically fires page view events for the window.history api? I’m seeing google analytics fire off, but not Mautic. I find it strange that this isn’t talked about or requested anywhere on Mautic’s github in code or issues or anyone where on slack or the forum.

**Your software**  
My Mautic version is: 3.3.4  
My PHP version is: 7.4  
My Database type and version is: mysql 5.7

**Your problem**  
My problem is: page events are not tracked when the page is changed via the javascript history api

These errors are showing in the log: N/A

Steps I have tried to fix the problem: Looking through the code repo to see if anything is mentioned regarding this.
