Conversion for form sumibssion for Google Analytics

I would like to measure the conversion of form submissions using Google Analytics,

but it’s not being tracked.

In the default setup of Shopify, after form submission, a parameter contact_posted=true is added to the url.

I tried using this parameter as a conversion but its not working.

Do i need to redirect to a thank-you page to measure the conversion??

I appreciate any guidance.

Hi,

GA4 introduces a new event-based model for tracking user interactions. Here’s how you can track form submissions as conversions in GA4:

Set up a custom event: Configure your form submission process to trigger a custom event when the form is successfully submitted. You can use the gtag function or the GA4 Measurement Protocol to send the event data to GA4. The event should have relevant parameters, such as the event name, form ID, or any other useful information you want to track.

Example:
dataLayer.push({‘event’: ‘event_name’});

You can refer below link :
https://developers.google.com/tag-platform/tag-manager/datalayer?hl=en&sjid=9553618109938263078-AP#use_a_data_layer_with_event_handlers

Define a conversion event in GA4: In your GA4 property, go to the “Events” section in the left-hand navigation menu. Click on “Manage Events” and then select “Conversions.” Here, you can create a new conversion event that corresponds to your form submission. Provide a name for the conversion event and configure the conversion settings as needed.

Enable conversion tracking for the custom event: In the conversion event settings, find the custom event you created for form submissions. Enable conversion tracking for this event by toggling the switch.

Verify the event tracking: Test your form submission process to ensure that the custom event is being triggered correctly. You can use tools like the GA4 DebugView or GA4 Realtime reports to monitor the incoming events and verify their parameters.

Best Regards