How to Send Custom Key Events to GA4

send custom GTM Event to GA4

Now that your “Listener” tag is set up (from Part 1), Google Tag Manager knows when a form is submitted. However, Google Analytics 4 (GA4) is still in the dark. We need to create a bridge to pass that signal to your reports.

Here is the step-by-step guide to turning that raw code into a tracked Key Event.

Step 1: Create the Trigger in GTM

We need to tell GTM specifically when to fire the GA4 tag. We do this by listening for the custom event name we wrote in the code earlier.

1. Go to Triggers in the left menu and click New

Contact Us Confirmation Screenshot

2. Click Trigger Configuration and select Custom Event.

Contact Us Confirmation Screenshot

3. Crucial Step: In the Event Name field, type exactly: ninjaFormSubmission
(Note: This must match the code from Part 1 exactly. It is case-sensitive).

4. Name the trigger Custom Event – Ninja Form Submission and save it.

Contact Us Confirmation Screenshot

Step 2: Create the GA4 Event Tag

Now, let’s send this event to Google Analytics.

1. Go to Tags in the left menu and click New.

Contact Us Confirmation Screenshot

2. Click Tag Configuration and select Google Analytics: GA4 Event.

Contact Us Confirmation Screenshot

3. Measurement ID: Select your constant variable or paste your G-XXXXXXXXXX measurement ID manually

4. Event Name: This is what will show up in your GA4 reports.

Recommendation: Use the standard GA4 event name Form_Submit. This helps Google’s algorithm understand that a user became a lead

Contact Us Confirmation Screenshot

5. Tag Firing Options (Crucial Step):

  • Click on Advanced Settings to expand the menu.
  • Under Tag Firing Options, select Once per page.
Contact Us Confirmation Screenshot
  • Why? This prevents the tag from accidentally firing twice if a user double-clicks the submit button, ensuring your conversion data stays 100% accurate.

Triggering: Scroll down and select the “Custom Event – Ninja Form Submission” trigger you just created in Step 1.

Contact Us Confirmation Screenshot
  • Name your tag (e.g., GA4 – Event – Ninja Form Submit) and click Save.
Contact Us Confirmation Screenshot

Step 3: Publish Your Changes

Your setup is complete in GTM. Now you must push it live.

1. Click the blue Submit button in the top right corner of GTM.

2. Add a version name (e.g., “Added Ninja Forms GA4 Tag”) and click Publish.

Contact Us Confirmation Screenshot

Step 4: Mark as a “Key Event” in GA4

Note: As of 2024, Google has renamed “Conversions” to “Key Events” in the GA4 interface.

Now that the data is flowing, you need to tell GA4 to count this as a conversion.

1. Open Google Analytics 4.

2. Go to Admin (the Gear icon in the bottom left).

3. Under the Data display section, click Events.

Contact Us Confirmation Screenshot

4. You should see Form_Submitin the list.

    • Note: If you just published the tag, it might take 24 hours to appear here. If you don’t want to wait, click “Create Event” and manually type
Contact Us Confirmation Screenshot

5. Toggle the switch in the Mark as Key Event column to ON (it will turn blue).

Contact Us Confirmation Screenshot
Contact Us Confirmation Screenshot

You’re Done!

Now, whenever someone submits your Ninja Form, the entire chain reaction happens instantly:

1.The Listener script fires.

2. GTM sees the ninjaFormSubmission event.

Contact Us Confirmation Screenshot

Follow Us:

About Us

We are experts in Tags and Tracking Services. With experience in eCommerce and Custom Conversion tracking, Server Side Tagging, and Data tracking to help you get the advantage of ACCURATE data for better decision making. With more than 6 years of experience, We have already delivered more than 500 projects.