Google Analytics Form Tracking (without a Thank You page)

Hello,

I’ve just published my newly created webflow site:

The site was built from a template I purchased and it uses a form that when submitted triggers a success event, but doesn’t redirect to a dedicated Thank You page (which I prefer).

I want to be able to setup Google Analytics so that when someone comes to the site and submits a form I can track whether that person found the site through organic, adwords, social, etc.

I believe this is fairly common request on here as I’ve seen a number of similar posts, but I’ve yet to find a satisfactory answer, approach, or solution. I’m also not very experienced when it comes to setting up this integration, adding custom code to the website, etc.

I would greatly appreciate it if someone could provide some help or at least point me in the right direction.

Thank you!

Take a look at the Google dev docs for guidance.

https://developers.google.com/analytics/devguides/collection/ga4/events?client_type=gtag