Articles on: Client Side

Set trigger on a specific form

Give the trigger a clear name, such as: “form - formname”.

Click on Trigger Configuration and select ‘Form Submission’ as the trigger type.



You can only choose this trigger if you are sure that the form on your site triggers a form_submit event. Otherwise, you will need to trigger based on a thank you page or CSS visibility, depending on how the form is set up and whether a thank you page or message is used.

Select "Some Forms"



On the left dropdown menu, select which variable you would like to use to activate this trigger.

This can be based on specific pages by choosing ‘Page Path’ or ‘Page URL’.
This can be based on a specific form ID. For this, select ‘Form ID’ from the list of built-in variables.
This can be based on a specific form class. For this, select ‘Form Class’ from the list of built-in variables.
This can be based on specific form text. For this, select ‘Form Text’ from the list of built-in variables.



In the middle dropdown menu, choose how you want to distinguish the condition from the previous step. In the third field, the input field, enter the correct parameter. In the screenshot below, you can see how it looks when you want to trigger on all visitors who fill out a form with a specific form ID on a specific page.



Save the Trigger.

There are 2 other options you can select in the form submission trigger:

Wait for Tags: Specify how many milliseconds this trigger should wait before it is allowed to activate.
Check Validation: Enable this option if you want to measure only successful form submissions. If you leave this option off, you will also measure unsuccessful form submissions.

Updated on: 16/08/2024

Was this article helpful?

Share your feedback

Cancel

Thank you!