Page view triggers

Mastering ClickFlare Tag Manager's Page View Triggers: A Comprehensive Guide to Optimizing Tag Firing
E
Written by Ervis
Updated 2 months ago

Use ClickFlare Tag Manager's page view triggers to fire tags when pages are loaded in web browsers. There are five trigger types that are based on page load events, and each type has different criteria to determine when the trigger should fire. The order of precedence for page view triggers is as follows:

  1. 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.
  2. 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.
  3. Links Loaded: Activates when all links on the page have been fully loaded and are ready for user interaction. This trigger is useful for tracking specific link interactions or behaviors.
  4. DOM Element Loaded: Activates when specific elements within the DOM, such as images or scripts, have been loaded. This trigger is beneficial for tracking interactions tied to the availability of certain elements on the page.
  5. 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 > 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:

    Example: Fire this trigger on page view and if page URL contains /thank-you.
  4. Save the trigger and publish.

Related Resources:

Did this answer your question?