AdWords is now Google Ads. Our new name reflects the full range of advertising options we offer across Search, Display, YouTube, and more. Learn more

Analytics
2.4K members online now
2.4K members online now
Dive into multiple domain (Cross/Sub) tracking, implementing Ecommerce and Enhanced Ecommerce, setting up Event tracking, and Universal Analytics code.
 
Guide Me
star_border
Reply

Tracking Contact Form Submissions without Thank you page

Visitor ✭ ✭ ✭
# 1
Visitor ✭ ✭ ✭

Hi,

I would want to track in Google Analytics the submission of a form without using a thank-you-page.

Which js code could I use to activate an event in GA and set a Goal based on the event?

Actually I need Google Analytics and not Tag Manager.

Thanks,

Fred

 

1 Expert replyverified_user

Tracking Contact Form Submissions without Thank you page

Rising Star
# 2
Rising Star

Fred,

 

I recommend a real thank you page; that said, you can have an event fired after the form validates.

 

https://developers.google.com/analytics/devguides/collection/analyticsjs/events#outbound_link_and_fo...

 

You can also try autotrack

 

https://github.com/googleanalytics/autotrack

 

Best,

 

Theo Bennett

Analytics Evangelist at MoreVisibility | Contact Me
Connect on LinkedIn