Go to the Admin section and click on Data Streams.
Then, copy your measurement ID.
Go to your Google Tag Manager account and select Google Analytics: GA4 Configuration.
Paste your Measurement ID and select All Pages for Triggering so your GA4 code works across your entire website.
Select Google Analytics: GA4 Event
Select your Google Analytics 4 property, choose an event name (e.g. contact_form_submission), and enter the event parameter. For the event parameter, it depends on how you want to track your conversion. In our example, we want to track contact form submission by measuring the number of “thank you” pages that visitors are redirected to after submitting a contact form. The confirmation page URL includes the parameter “/thank-you-for-contacting-us/” and we’re using this parameter to track contact form submissions.
For the Triggering, use the confirmation URL, “/thank-you-for-contacting-us/”. Doing this lets you trigger your event when a visitor goes to the confirmation URL.
Enter the event name that you used for a custom event (e.g. contact_form_submission) and press save.
Make sure that the conversion goal is enabled.
To test whether your goal conversion is working, visit the page that you’ve used for page location in your browser. Then go to Report > Real Time in your GA4 account and see if GA4 is tracking the conversion.
If you see your conversion in GA4 real time report, your conversion goal is working!
Stay ahead of the curve with the latest digital marketing insights, delivered straight to your inbox.