Track Ninja Web Forms
Ninja Forms is a WordPress form plugin that lets you create contact forms, registration forms, payment forms, and more with a drag-and-drop interface. WhatConverts can track Ninja Forms submissions by adding a custom tracking script and configuring manual form tracking, which captures lead data and attributes each submission to the marketing source that drove it.
Set Up Ninja Form Tracking
To track Ninja Forms submissions with WhatConverts:
- On the page where your Ninja Form is located, add the following script above the form:
html
<script type="text/javascript"> function wc_track() { var els = document.querySelectorAll("input[id*='nf-field'][type='submit']"); for (var i = 0, l = els.length; i < l; i++) { var el = els[i]; el.classList.add("wc_ninja_btn"); var form = el.form; form.classList.add("wc_ninja_form"); } } setTimeout(function(){ wc_track(); }, 2000); </script> - Log in to the WhatConverts profile you want to use to track your form. From the top menu, select "Tracking", "Forms," and then "Web Forms".
- Click the "Add Web Form" button and select "Manual Setup".
- Name your form and set Attribute Type to "Class". Enter the Attribute Value wc_ninja_form.
- Where it says, "Is there an alternate Submit button?" select "Yes". Select Attribute Type "Class". Enter the Attribute Value wc_ninja_btn.
- Click "Finish".
Your Ninja Form is now being tracked. WhatConverts will capture all submissions from this form and create leads with full attribution data.
Test Your Ninja Form Tracking
After setting up tracking, verify that form submissions are being captured correctly:
- Go to the page where your Ninja Form is located.
- Fill out the form with test information and submit it.
- Return to your WhatConverts profile and view your form leads.
- Find the test form submission and check its data.
If your test lead appears correctly, your Ninja Form tracking is working properly.
Related Topics
- What is Web Form Tracking?
- Track Web Forms Automatically with the Form Finder
- Track Contact Form 7 Web Forms
- Track Gravity Web Forms
Get a FREE presentation of WhatConverts
One of our marketing experts will give you a full presentation of how WhatConverts can help you grow your business.
Schedule a Demo
