Set Up Ninja Forms Submission Event Google Analytic 4 (GA4) Tracking using Google Tag Manager
Tracking Ninja Forms conversions allows you to measure the effectiveness of your forms in converting visitors into leads or customers. There are several ways to track Ninja Forms conversions, including using Google Tag Manager (GTM) and Google Analytics 4 (GA4), and using JavaScript events.
With GTM, you can create a “Form Submission” trigger that fires when a Ninja Form is submitted, and then create a tag for the appropriate tracking code (such as Google Analytics or GA4) that fires on that trigger.
With GA4, you can use the “nfFormSubmit” event to track Ninja Forms conversions. This event is triggered when a form is submitted, and you can add GA4 event tracking code to run when the event is fired.
In both cases, you need to make sure that the tracking code is installed on your site and the script runs after the GA4 tracking code.
To track Ninja Forms conversions with Google Analytics 4 (GA4) using JavaScript events, you can use the “nfFormSubmit” event that is triggered when a form is submitted. Here’s an example of how you can set this up:
- Add the following JavaScript code to your Google Tag Manager
document.addEventListener( 'nfFormSubmit', function( event ) {
'event_category': 'Form',
'event_label': 'Ninja Form'
});
}, false );
Replace ‘event_category’ and ‘event_label’ values with the appropriate value for your implementation. Make sure that GA4 tracking code is installed on your site and the script runs after the GA4 tracking code. Once you have added the tracking code, the “nfFormSubmit” event will fire whenever a Ninja Form is submitted, and the GA4 event code will run.
Warning: If you do n’t know about javascript or do n’t have developing knowledge then do n’t try to Ninja Form Submission Google Analytic 4 Event using Google Tag Manager that can broke your site, Cart and other functionality
Disclaimer: Google tag manager belongs to Google property
For Contact: mappchero@gmail.com
I am available for Hire on Freelancer: Freelancer.com
I am available for Hire on Upwork: Upwork.com
I am available for Hire on Peopleperhour: Peopleperhour.com
I am available for Hire on Guru: Guru.com