In our company I’ve found at least two SPAs that use a sort of redirect when you open a page; they fire two History Change events after another.
For example, I click a link to a “news” page, the URL changes to “/news/” with a History Change, and immediately changes again to “/news/2023/” with another History Change. One of these SPAs doesn’t even change the URL the second time, just fires two History Change events.
I’ve tried using the “Fire delay” setting on the pageview tag, and that works in a way as the in-between page is not firing a pageview anymore. But now the final page fires TWO pageviews, including the delayed one from the in-between page, but both register a pageview for the final page. So now I’m counting all pageviews on the final page twice.
Is there a way to delay firing a pageview, and cancel it if another pageview happens before the delay expires? I would have expected that to be the default; it’s more logical to ignore a very short pageview than to register a pageview twice if it happens after a redirect.