Page view trigger

Use Google Tag Manager's page view trigger to fire tags when a pages are loaded in web browsers. There are three trigger types that track page load events, and each type has slightly different criteria to determine when the trigger should fire a tag:

  • Page View: Fires immediately when the web browser begins to load a page. Use this option if you only need data generated from page impressions.
  • DOM Ready: Fires after the browser has finished constructing the full page in HTML and the Document Object Model (DOM) is ready to be parsed. Pageview-based tags that interact with the DOM to populate variables should use this trigger type to ensure that the correct values are available to Tag Manager.
  • Window Loaded: Fires after the page has fully loaded, including any embedded resources such as images and scripts.

To create a new page view trigger:

  1. Click Triggers and then New.
  2. Click Trigger Configuration and choose a page view trigger type.
  3. Optional, but recommended to improve performance: Specify conditions (usually a URL pattern) for pages where you expect a click to occur:
    • Under the heading "This trigger fires on", select "Some Events".
    • Under "Fire this trigger when an Event occurs and all of these conditions are true", add a filter to enable this trigger only on pages that require it, e.g. Click URL contains /path/to/promo.
  4. Save the trigger and publish.
Was this helpful?
How can we improve it?