How to trigger a tag upon multiple pageviews in a session using GTM?

Let's start

It’s very easy to setup goal upon multiple pageviews in Google Analytics as compared to Google Tag Manager. GTM does not maintain state, as soon as you navigate away from a page GTM has forgotten about it.

To trigger a tag after multiple pageviews you will need to store a count of pageviews. It could be either in a cookie / local storage. Finally use the stored value as trigger condition of the tag.

Don't miss out when new resources launch

Our customer analytics experts share wisdom only once a month

Share now
We are customer-analytics consultancy that transforms messy data into actionable insights that will help you grow your company and make better data-backed decisions.