What are Webhooks?
Webhooks are a means to send data to another service. Simply put, once a form is successfully submitted, the Webhook sends data to a URL.
Why Do I Need Webhooks?
Logic Hop Goals allow you to track user events, like form submissions. Setting a Goal is easy when the form redirects to another page, but what if you don’t want to redirect the user after the form is submitted? Easy – Use Ninja Forms Webhooks to send the data in the background and set the Goal without leaving the page!
Why Should I Set Goals?
Goal tracking gives you the ability to know exactly what users are doing on your site. Logic Hop gives you the power to use those Goals in conditions to display personalized content and much more. Imagine knowing if a user has completed your Consultation Request form – Now you can identify them when they return and personalize their experience.
Using Ninja Form Webhooks with Logic Hop
Logic Hop provides an AJAX method that allows you to set Goals from Webhooks and other third-party service. The following steps will walk you through connecting to it from Ninja Forms Webhooks.
Step 1: Create a Logic Hop Goal
After your Goal is created, make sure to note the Goal ID. This can be found in the Shortcode field. The Goal ID in our example is 170.
Step 2: Edit the Ninja Forms Webhook
The Webhooks editor is located in Dashboard > Forms > Form > Emails & Actions.
Step 3: Set the REMOTE URL
Your Remote URL will be prefixed with your domain name and followed by /wp-admin/admin-ajax.php.
Step 4: Set the REMOTE METHOD
The Remote Method must be set to Post.
Step 5: Add the ARGS
- Argument 1
- Key: action
- Value: logichop_goal
- Argument 1
- Key: goal
- Value: ##Goal ID##
Step 6: Disable ENCODE ARGS AS A JSON STRING
Step 7: Test It!
That’s it! Now test your form submission and confirm the Goal is being set by viewing your Logic Hop Insights.
Not working? Be sure you have the Remote URL set properly!
Ready to get personal?
Try Logic Hop risk-free for 14 days!!