Event trigger

An event trigger fires a tag on a chosen event on all pages, but you can adjust its conditions so that the tag fires for a certain page.

An event trigger in Tag Manager.

You can choose from the following conditions:

  • Event: Fires when a chosen custom event occurs in dataLayer. For example, you can fire a tag when a visitor adds a product to a shopping cart. (This is a required condition for an event trigger.)
  • Page URL: Fires when an event occurs on a page with the chosen page URL. For example, a visitor is on https://clearbank.com/product-tour and an event happens.
  • Page path: Fires when an event occurs on a page with the chosen page path. For example, a visitor is on /product-tour and an event happens.
  • Page hostname: Fires when an event occurs on a website with the chosen hostname. For example, an event happens on all pages for clearbank.com.
  • Referrer: Fires when an event occurs on 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 an event happens on that page.
  • External referrer: Fires when an event occurs on 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 an event happens on that page.
  • Campaign: Fires when an event occurs on any page to which the visitor was referred by the chosen campaign (based on a utm_campaign parameter).
  • Traffic source: Fires when an event occurs on any page to which they came from the chosen traffic source: campaignorganic serachsocialreferraldirect.
  • Returning visitor: Fires when an event occurs for a returning visitor (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!