Lee A
Lee A

Reputation: 139

How to stop one page from firing a page view?

How can i stop just one of the pages on my website from firing a page-view event when it's loaded?

I still want the other events to fire from that page.

I am using Google Tag Manager and Google Analytics 4

Upvotes: 0

Views: 1641

Answers (1)

BNazaruk
BNazaruk

Reputation: 8111

Just modify your trigger by adding an exception to it like so:

enter image description here

If it's an SPA pageview, then it's harder with how GA4 PV tag just offers an option to fire on history changes rather than adding a history change trigger.

For this case, you would need to prevent it from firing pageviews on history changes and reimplement it via normal triggers, where you would add an exception.

Upvotes: 1

Related Questions