Leave content trigger

A leave content trigger fires a tag when a visitor navigates the cursor away from the page. By default, the tag fires on all pages, but you can adjust its conditions so that the tag fires for certain pages.

A leave content trigger in Tag Manager.

You can choose from the following conditions:

  • Leave content: Fires when the cursor leaves a page. You can choose two options for this condition: page exit intent — the cursor leaves page via top edge or cursor leaving the browser's area — the cursor leaves page via any edge. (This is a required condition for a leave content trigger.)
  • Page URL: Fires when the cursor leaves a page with the chosen page URL. For example, a visitor is on https://clearbank.com/product-tour and navigates the cursor away from the page.
  • Page path: Fires when the cursor leaves a page with the chosen page path. For example, a visitor is on /product-tour and navigates the cursor away from the page.
  • Page hostname: Fires when the cursor leaves a page on a website with the chosen hostname. For example, a visitor navigates the cursor away from any page for clearbank.com.
  • Referrer: Fires when the cursor leaves any page to which the visitor was referred by the chosen referrer. For example, a visitor comes from https://clearbank.com/blog to any page and navigates the cursor away from the page.
  • External referrer: Fires when the cursor leaves any page to which the visitor was referred by the chosen external referrer. For example, a visitor comes from https://medium to any page on your website and navigates the cursor away from the page.
  • Campaign: Fires when the cursor leaves any page to which the visitor was referred by the chosen campaign (based on a utm_campaign parameter).
  • Traffic source: Fires when the cursor leaves any page to which the visitor came from the chosen traffic source: campaignorganic serachsocialreferraldirect.
  • Returning visitor: Fires when a returning visitor navigates the cursor away from the page (this mechanism is based on the Piwik PRO Tag Manager cookie).
  • Variables: Any added variable will show up on the list of conditions and you can use it to define trigger conditions.
Was this article helpful?

Be the first to rate this article.

Technical Support

If you have any questions, drop us a line at support_SPC@piwik_SPC.pro.

We’re happy to help!