Comment on page
How to track form submissions in WordPress with the use of Event Tracking provided by Google Analytics.
Please note: You will require a Tracking ID from your Google Analytics account to make this work. If you haven't one yet you can get yours from Google Analytics
If you are using Google Analytics to track web traffic, you might also wish to track form submissions. This guide will provide you with the steps required to set it up correctly.
Tracking form submissions with your Google Analytics account is very easy with Super Forms.
The only thing you will have to do is add the code snippet to your site and setting up the events for the forms you wish to track.
Enable the option Track form submissions with Google Analytics.
Add the following code snippet and replace UA-XXXXXX-X with your Tracking ID.
ga('create', 'UA-XXXXXX-X', 'auto');
The last step is to add an Tracking Event that will be send to Analytics.
The only thing you have to do is prepend the form ID before
sendwith a colon
This event will only be triggered for the form with ID
In order to setup a global tracking event you can simply add the following line:
Replace Contact Form with a more suitable name if needed. This will be visible in your Analytics dashboard.
In some cases you might need or want to give some additional information, for instance if you are running multiple campaigns in a specific time period. You can append the Label and Value like this:
send|event|Campaign Form|submit|Fall Campaign|43
If you have setup everything correctly you should be able to see some activity in your Analytics Dashboard when a form has been submitted.
Current form submissions will now be listed under
Earlier form submissions will now be listed under