D2CEBL | Trouble tracking form submissions

Trouble tracking contact form submissions

Hi, my website was built using next.js. 

I've installed Google Analytics and GTM, and I saw that Analytics is firing when the form is started and submitted when testing yesterday. Conversions should appear on my GA reports, but I don't see them. Any idea why this is happening?

Published by Marty Paukstys, founder of D2CEBL. 20+ years of Google PPC & Analytics experience. Google Ads Search and Google Analytics certified.
 

1/21/2025: Working on it.

1/22/2025: Let's give it another 24 hours. Often it takes 24-48 hours for data to show up on Analytics reports. Let's see if this is just a lag from Google's side. If not, then we will get to your form and see how we can fire GTag upon form submission.

1/22/2025: Issue solved. Will update with the solution tomorrow.

SOLUTION

1/23/2025: After review, the issue happened to be with missing GTM trigger and form submit tag.

This is the easiest fix out of all form tracking issues:

1. Go to Google Tag Manager and log into your account

2. Click Tags on the left menu and and click New in the upper right corner

Step 1.png

3. Under Tag Configuration, choose Google Analytics: GA4 Event; get your measurement ID from Google Analytics (find your Data Stream in Analytics and copy it there to paste in this step); name your event (something like lead_generation will work).

Step 2.png

4. Under Triggering, add a new trigger (Trigger Type = Form Submission (make sure you add all form elements under Variables first); check All Forms at the bottom).

Step 3.png

5. Go to Preview on the main GTM account page (top right corner); visit your website in Preview mode; fill out your form and submit the form. Watch for the GTM tag you just created to fire. If it's not, then something is wrong, in general. 

In this case, the tag fires properly, and the event (lead_generation) is pushed to GA4.

Cheers!

 

Back to PPC Troubleshooting
  • Share
  • facebook
  • icon_linkedin
  • icon_x