Man sitting on chair in a cafe

The latest release of the year of our testing platform for WordPress is here, and it comes with the features you have asked for. So, without further ado, let’s quickly review what’s new!

HubSpot Form Submissions

Nelio A/B Testing has native support for a lot of form WordPress plugins, including Contact Forms 7, Gravity Forms, Nelio Forms, Ninja Forms, WPForms, or Formidable Forms, as well as Elementor’s forms. This means that, if you use any of these plugins to create and add forms on your website, you can easily select the form you want to track in your tests and get a conversion when one of your visitors submits the tracked form:

Conversion action in Nelio A/B Testing showing a Ninja Form being tracked
Conversion Action tracking a Ninja Form Submission.

Nelio A/B Testing 6.3 adds HubSpot forms to the equation, making it extremely easy to track submission on this platform. All you have to do is specify the ID of your form inside the proper field:

Conversion action in Nelio A/B Testing showing a HubSpot form being tracked
Conversion Action tracking a HubSpot Form Submission.

and our plugin will take care of the rest.

How to Enable this Feature

If you’re using HubSpot’s official WordPress plugin, you don’t need to do anything in particular (other than install the latest version of Nelio, of course). But if you aren’t, and you don’t want to install it, you’ll have to add the following hook on your WordPress site:

add_filter( 'nab_are_hubspot_forms_enabled', '__return_true' );Code language: JavaScript (javascript)

onBeforeFormSumbit versus onFormSubmitted

If you’re familiar with HubSpot’s JavaScript API, you probably know that HubSpot forms provides two main events to track form submissions: onBeforeFormSubmit and onFormSubmitted. As stated in the documentation, the former is triggered “at the start of form submission, but before submission has been persisted,” where as the latter is triggered “after the form has been submitted and the submission has been persisted.”

When we first implemented HubSpot form submission tracking, we were’nt sure which event would be the best. We tested this new feature extensively with a few customers who’ve been kind enough to try it out before its official launch and, in the end, we opted for onBeforeFormSubmitted-as far as our tests go, it proved to be the most secure and reliable solution.

If, for some reason, you’d like to use the other event, you can contact us or you can implement a custom JavaScript conversion action. The JavaScript snippet to track the event would look similar to this:

window.addEventListener( 'message', ( event ) => {
  if ( event?.data?.type !== 'hsFormCallback' ) return;
  if ( event.data.eventName !== 'onFormSubmitted' ) return;
  const formId = 'YOUR FORM ID HERE';
  const nabEvent = 'YOUR CONVERSION ACTION EVENT NAME HERE';
  if ( event.data.id === formId ) {
    nab.trigger( nabEvent );
  }
} );Code language: JavaScript (javascript)

but please tweak it as necessary to better suit your needs.

Nelio A/B Testing

Native Tests for WordPress

Use your WordPress page editor to create variants and run powerful tests with just a few clicks. No coding skills required.

IP Exclusions

If you want to exclude your IP of your team’s IPs from being tracked by our plugin, you can now do it very easily using a new setting named, you guessed it, “Excluded IPs.” Just go to the plugin settings and you’ll find a text area where you can add as many IPs as needed (one per line):

Screenshot of Nelio A/B Testing’s settings
Nelio A/B Testing now has a new setting named “Excluded IPs” where you can globally specify which IPs should be ignored.

Visitors coming from any of those IPs will still see the site as if they were under test, but the events they trigger (page views, conversions, etc) will be ignored by our cloud. It’s that simple!

Additional Updates

Finally, here’s a list of all the minor updates and fixes included in this release:

  • Fix style of field descriptions in plugin settings screen
  • Load latest 3 news in dashboard widget
  • Improve dashboard widget styles
  • Remove no_found_rows from post searcher query to allow pagination
  • Keep start date when restarting a test
  • Add warning message in heatmap renderer to let users know they should disable adblockers
  • Add extra filters to make sure alternative title, content, and excerpt are properly loaded

Featuerd Image by Austin Distel on Unsplash

Leave a Reply

Your email address will not be published. Required fields are marked *

I have read and agree to the Nelio Software Privacy Policy

Your personal data will be located on SiteGround and will be treated by Nelio Software with the sole purpose of publishing this comment here. The legitimation is carried out through your express consent. Contact us to access, rectify, limit, or delete your data.