How to track Everest Forms’ form submission using Google Analytics 4?

Preface #

Follow the instructions on this documentation to track your form submissions using Google Analytics 4.

Word from Google: Google Analytics 4 is our next-generation measurement solution, and it's replacing Universal Analytics. On July 1, 2023, standard Universal Analytics properties will stop processing new hits. If you still rely on Universal Analytics, we recommend that you prepare to use Google Analytics 4 going forward.

Setting up Google Analytics 4 #

  • Create an account from here.
  • Add the account name and click on Next.
  • In the Property Setup section, give the property name, location, and currency.
  • You can skip the Business part.
  • Click on Create. Accept the terms and conditions and click on I Accept.

Your Google Analytics 4 account is now created under the chosen name. After this, you will be redirected to the Data Streams dashboard.

  • Choose/Click on Web.
  • On the next window, add your site’s URL and a stream name of your choice.
  • Click on Create Stream.
  • After the stream is created, copy the Measurement ID into a clipboard.

Using Google Tag Manager #

Now, we will need a trigger, and tracking event and then connect these through Google Tag Manager to Google Analytics 4. From the following steps, the trigger and the tracking events can be created.

Installing Google Tag Manager #

  1. Go to the Google Tag Manager site.
  2. Create a new Account.
  • Fill in the required details. Choose ‘Web’ for the Target Platform.
  • Accept the Terms and Conditions.

After the account is created, you will see the scripts you need to add and where they needed to be added to, in the Install Google Tag Manager window.

Add these scripts to their respective locations in the theme’s file. You can create a child theme and not lose these scripts in the next theme update. After this, the Google Tag Manager is installed on your site.

Create a Tag #

  1. Click Tags > New.
  2. Give a name and click on Tag Configuration
  1. Choose Google Analytics: GA4 Event as the tag type.
  2. Now, choose None – Manually Set ID as the Configuration Tag.
  3. Paste the previously copied Measurement ID on the input box.
  4. Give a proper name for the Event.
  5. Click on Save.

Create a Trigger #

  1. Click Triggers >New.
  2. Click Trigger Configuration.
  3. Select the trigger type Element Visibility.
  • Choose CSS Selector in the Selection Method.
  • Add the CSS Class of the Successful Form Submission message. In this case, use .entry-content > .everest-forms > .everest-forms-notice–success
  • You can put 1 as the Minimum Percent Visible.
  • Enable Observe DOM changes.
  • Click Save.

Check your Events #

Once all the setups have been completed, your Events reporting will start capturing all form submissions. You can see these from Google Analytics Dashboard > Engagement > Events.

Powered by BetterDocs