Go Back

Trigger – on Leave Content

January 29, 2018

You can use Triggers on Leave Content to fire tags when the visitor’s cursor is leaving page area.

You can choose the setup from the following conditions:

Leave content (it’s on by default and it’s required)

Fire a tag when the cursor leaves page area. There are two options to choose:

  • Page exit intent – the cursor leaves page area via top edge.
  • Cursor leaving the browser’s area – the cursor leaves page area via any edge.
  • Page URL

    Fire on leave page area when visiting a page with proper URL.
    E.g. fire a tag for all https://piwik.pro/contact/ visitors.

    Page Path

    Fire on leave page area when visiting a page with proper page path. Contains an initial ‘/’ followed by the path of the URL.
    E.g. Fire a tag on all visitors who visit pages with the path which contains: /contact/ and left page area.

    Page Hostname

    Fire on leave page area when visiting a website with proper hostname.
    E.g. fire a tag for all piwik.pro visitors who left page area.

    Referrer

    Fire on leave page area if a visitor came straight from a page with defined URL.
    E.g. fire a tag for all a visitors who arrived here from the page with https://piwik.pro/contact/ URL and left page area.

    External referrer

    Fire on leave page area if a visitor came to my website from the website with chosen domain URL. This parameter is ‘remembered’ during whole visitor’s session.
    E.g. Fire a tag on leave page area if a visitor came from google.com

    Campaign (utm_campaign)

    Fire on leave page area if a visitor came to my website from my chosen campaign (base on utm_campaign parameter).
    E.g. utm_campaign=my-campaign-name-01

    Traffic source

    Fire on leave page area based on referrer type. There are five options to choose:

  • Campaign – came from Google AdWords Campaign (utm_campaign)
  • Organic search – found your website in search engine like google.com
  • Social – came from social media apps like Facebook, Twitter etc.
  • Referral – came by clicking a link on other websites (but not search engine, campaign or social media)
  • Direct – came by entering URL in web browser
  • Returning visitor

    Fire on leave page area for a new visitor or a returning one. It’s based on Piwik PRO Tag Manager cookie.

    Variables added by a user

    You can add many conditions to one trigger. All of the conditions must be met in order to fire a tag.

    In “Leave content” trigger type you can define multiplicity. There are 3 available options:

  • “Fire tag multiple times” – trigger will activate a tag each time conditions will be met.
  • “Fire tag once per page view” – fire a tag only once within one-page view – doesn’t matter if triggers conditions will be met multiple times.
  • “Fire tag once per session” – during browser’s session time a tag can be fired only once.