Page leave trigger

Tag Manager

A page leave trigger fires a tag when a visitor moves the cursor away from the current page. By default, the trigger fires on all pages. However, you can change its settings so that the tag fires on a specific page or under specific conditions.

Page leave trigger in Piwik PRO

Page leave conditions

Condition type Description

Cursor moves outside:

Upper page boundary (exit intent)

or

Upper, bottom or side page boundary

Fires the tag when a visitor moves the cursor in the selected direction.

Event conditions

Condition type Description Example
Page URL Fires the tag when a visitor moves the cursor off a page with the selected page URL. For example, a visitor is on the page https://clearbank.com/product-tour and moves the cursor off the page. Page Url equals https://clearbank.com/product-tour/
Page path Fires the tag when a visitor moves the cursor off a page with the selected page path. For example, a visitor is on the page that contains the path /product-tour and moves the cursor off the page. Page Path contains /product-tour
Page hostname Fires the tag when a visitor moves the cursor off a page hosted on the selected domain. For example, a visitor is on the page hosted on clearbank.com and moves the cursor off the page. Page Hostname equals clearbank.com
Referrer Fires the tag when a visitor moves the cursor off 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 and moves the cursor off the page. Referrer equals https://clearbank.com/blog
External referrer Fires the tag when a visitor moves the cursor off 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 and moves the cursor off the page. External referrer equals https://google.com
Campaign Fires the tag a visitor moves the cursor off 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 moves the cursor off 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 moves the cursor off 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 for each page view
Once in a session

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