Page view trigger

Tag Manager

Video tutorial: watch on YouTube

A page view trigger fires a tag when a visitor views a page. A page view can occur when (1) the browser starts to load a page (page view), (2) the HTML and DOM are fully loaded (DOM ready) or (3) when all page elements have finished loading (page load).

By default, the tag fires on all page views. However, you can change its settings so that the tag fires on a specific page or under specific conditions.

Page view trigger in Piwik PRO

Here’s a list of conditions available in this trigger.

Loading conditions

Condition type Description

Load this tag right after the browser:

Begins to load a page (page view)

Finished loading HTML and the DOM is ready (DOM ready)

Loaded all page elements (page load)

Fires the tag when a visitor visits a page and the page loads as selected.

Note: These conditions are only available in asynchronous tags. For synchronous tags, this trigger will only fire when the visitor’s browser starts to load a page (page view).

Event conditions

Condition type Description Example
Page URL Fires the tag when a visitor visits a page with the selected page URL. For example, a visitor visits the page https://clearbank.com/product-tour. Page Url equals https://clearbank.com/product-tour/
Page path Fires the tag when a visitor visits a page with the selected page path. For example, a visitor visits the page that contains the path /product-tour. Page Path contains /product-tour
Page hostname Fires the tag when a visitor visits a page hosted on the selected domain. For example, a visitor visits the page hosted on clearbank.com. Page Hostname equals clearbank.com
Referrer Fires the tag when a visitor visits a page to which they were directed by the selected referrer. This referrer is internal, meaning that it belongs to the same domain as your site. For example, a visitor comes from https://clearbank.com/blog. Referrer equals https://clearbank.com/blog
External referrer Fires the tag when a visitor svisits a page to which they were directed by the selected external referrer. This referrer is external, meaning that it has a different domain than your site. For example, a visitor comes from https://google.com. External referrer equals https://google.com
Campaign Fires the tag when a visitor visits a page to which they were directed by the selected campaign (based on the utm_campaign parameter). Campaign equals winter-promo
Traffic source

Fires the tag when a visitor visits a page to which they were directed by the selected traffic source.

Possible values: campaign, organic search, social, referral, direct.

Traffic source equals direct
Returning visitor Fires the tag when a visitor is a returning visitor and visits a page. The returning visitor is recognized by Tag Manager, which uses the stg_returning_visitor cookie. Returning visitor is true
Variable-based conditions Any variable you add will appear in the list of conditions and you can use it to define trigger conditions. ––

Tip: Learn more about trigger conditions.

Multiplicity

Possible multiplicity conditions
Many times during a session
Once in a session
Many times during a session, but skips the first event

Was this article helpful?

Technical support

If you still have any questions, visit our community.
There’s always someone happy to help!

Back to help center