Analytics Tracking
How to track form submissions in WordPress with the use of Event Tracking provided by Google Analytics.
Last updated
How to track form submissions in WordPress with the use of Event Tracking provided by Google Analytics.
Last updated
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.
Go to Super Forms
> Settings
> Form Settings
.
Enable the option Track form submissions with Google Analytics.
Add the following code snippet and replace UA-XXXXXX-X with your Tracking ID.
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 send
with a colon :
like so:
3519:send|event|Contact Form|submit
This event will only be triggered for the form with ID 3519
.
In order to setup a global tracking event you can simply add the following line:
send|event|Contact Form|submit
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 Realtime
> Events
.
Earlier form submissions will now be listed under Behavior
> Events
> Overview
.
If you are not sure if everything is correctly setup, you can use the extension for Google Chrome to debug any issues.