How to track successful Form Submissions using Matomo Tag Manager
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
- Review the form you want to track and apply mandatory fields. This helps users complete the form and prevents partial or blank submissions.
- In Tag Manager, navigate to Triggers and click Create New Trigger.
- Choose the Form Submit Trigger.
- 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.
- Save the new trigger.
Add a Tracking Tag
- Navigate to Tags and click Create New Tag.
- Choose the Matomo Analytics Tag and provide a descriptive name.
- 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}}
4.Link the previously created Form Submit Trigger and save the new tag.
Test and Publish
- Use the Preview and Debug mode to test the trigger and tag setup for successful form submissions.
- In your Matomo dashboard, view the Real-time report to view your test event.
- When the reports are processed, you can analyse successful form submissions in Behaviour > Events report.