Page Load Rules Example

You can implement rules that trigger during the course of a page load. For example, you can display a survey after a certain number of page views, or after a specified number of minutes into a session. Page load rules let you target by URL, site section, or set up scenarios that are independent of the site structure.

DTM Basics: Page Load Rules, Part One Time: 6:02

By then end of this video you should be able to:

  • Understand what a page load rule is
  • Understand the condition criteria options
  • Create a page load rule
DTM Basics: Page Load Rules, Part Two Time: 7:00

By then end of this video you should be able to:

  • Understand what a page load rule is
  • Understand the condition criteria options
  • Create a page load rule

Google AdWords Example

A marketer would like to trigger a Google AdWords conversion tag when a user fills out a form and arrives on the page http://www.mysite.com/form/thank-you.html

Here is how you can set up this scenario in dynamic tag management:

1. Create a new page load rule.



2. In the rule conditions, specify the page where this rule will be triggered.



3. Paste the tag your vendor gave you directly into the Third-Party Tags section.

Because dynamic tag management does not rely on templates, marketers can use any tag within a rule, even in formatted HTML.



4. Give your rule a name that describes the user interaction like “Forms: User submits form.”

You can also add descriptive metadata to your rule.

This description will help you and others identify this rule if they want to use it for their tags or tools later.

5. Save your rule, and you are ready to test it in a staging environment, request rule approval, and publish to the production site.



Note: By default, page load rules load at page bottom. This setup works for most scenarios. However, if the rule you are setting up has some dependency on in page content, it might be better to configure the rule to load on DOM ready. Conversely, if you have other rules that rely on the outcome of the rule in question, load the rule at Top of Page or Onload to ensure that it fires first.