Form submission trigger

Tag Manager

By default, form submission trigger fires a tag when a visitor submits a form on any page on your website, but you can adjust its conditions so that the tag fires when a visitor submits a certain form.

Form submission trigger in Piwik PRO

You can choose from the following conditions:

  • Form ID: Fires when a visitor submits a form with the chosen ID.
  • Form URL: Fires when a visitor submits a form that sends a request to the chosen page URL.
  • Form classes: Fires when a visitor submits a form with the chosen CSS class.
  • Form name: Fires when a visitor submits a form with the chosen name.
  • Page URL: Fires when a visitor submits a form on the page with the chosen page URL. For example,  a visitor is on https://clearbank.com/product-tour and submits a form.
  • Page path: Fires when a visitor submits a form on a page with the chosen page path. For example, a visitor is on /product-tour and submits a form.
  • Page hostname: Fires when a visitor submits a form on a website with the chosen hostname. For example, a visitor and submits a form on any page for clearbank.com.
  • Referrer: Fires when a visitor submits a form on any page to which they were referred by the chosen referrer. For example, a visitor comes from https://clearbank.com/blog to any page and submits a form.
  • External referrer: Fires when a visitor submits a form on any page to which they were referred by the chosen external referrer. For example, a visitor comes from https://medium to any page on your website and a submits a form.
  • Campaign: Fires when a visitor submits a form on any page to which they were referred by the chosen campaign (based on a utm_campaign parameter).
  • Traffic source: Fires when a visitor submits a form on any page to which they came from the chosen traffic source: campaignorganic searchsocialreferraldirect.
  • Returning visitor: Fires when a returning visitor submits a form on the chosen 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.

Note: If a form field returns a native HTML5 validation error, the form submission trigger won’t fire your tag.

Was this article helpful?

Technical support

If you still have some questions, visit our community.
There’s always someone ready to help!

Back to help center