Skip to main content

Tracking Events – Form Submissions

Table of Contents

The way we are tracking form submissions is tracking the button click on the form (as this will have a unique ID – another way to do this is a url visit – which could be a thank you page). I’m going to run through the click ID version below but if you wanted to track it on a page url such as the thank you page – you are simply just changing the trigger from a click to a url visit which contains /thank-you or whatever the url is for the landing page post form submission.

Button ID/Class Setup #

This here would be a GA4 event.

So we want to go to Google Tag Manager and Create a GA4 Event.

We want to grab our GA4 Measurement ID which can be found in our Google Analytics GA4 Property. This is in our Data Streams in the Property column.

Next we want to add this to our Measurement ID. We then need to give the event a name.

 

Next we want to create our trigger. This trigger will happen when a Click ID contains gform_submit_button_8 – each gravity form has their own submit ID. You can get this via inspect or check the form ID and add it to the end of the gform_submit_button string.

Once you have these set up you can navigate to our GA4 Property. We then navigate to ‘Configure’ in the left side bar. In here if we click Events we should see our new event in there collecting data. You can test this via the debug in our previous tutorial here.

Powered by BetterDocs