Use Matomo Tag Manager to track successful form submissions and capture only meaningful data. By implementing forms with mandatory fields, you can ensure visitors provide the necessary information and prevent the submission of incomplete or empty forms.

This guide explains how to track valid form submissions in Matomo Tag Manager.

Add the Form Submit Trigger

  1. Review the form you want to track and apply mandatory fields. This helps users complete the form and prevents partial or blank submissions.
  2. In Tag Manager, navigate to Triggers and click Create New Trigger.
  3. Choose the Form Submit Trigger.
  4. Add a condition that specifies the form you want to track. For example, using the Form ID acts as a unique identifier to ensure only submissions for a specific form are tracked.
    add form submit trigger in matomo tag manager
  5. Save the new trigger.

Add a Tracking Tag

  1. Navigate to Tags and click Create New Tag.
  2. Choose the Matomo Analytics Tag and provide a descriptive name.
  3. Select the Event Tracking Type and define the event as you want it to appear in your reports:
    Event Category: Forms
    Event Action: Submitted
    Event Name: {{FormId}}
    form submit matomo tag manager
    4.Link the previously created Form Submit Trigger and save the new tag.

Test and Publish

Previous FAQ: How do I track Page Scroll with Matomo Tag Manager?