Track GoHighLevel Web Forms

GoHighLevel is an all-in-one marketing platform that includes form builders for lead generation, appointments, and surveys.

WhatConverts can track GoHighLevel form submissions using three different methods depending on how your form is deployed: non-iframe forms that appear directly on the page, forms embedded in iframes, or multi-step forms. Each method requires adding custom JavaScript code to properly capture lead data and marketing attribution.

Note: The tracking methods below require adding custom JavaScript to your website. If you have access to your site’s code, you can add it yourself. Otherwise, contact WhatConverts Support to have the code added for you.

Method 1: Track Non-Iframe GoHighLevel Forms

Use this method if the form appears directly on the page (not embedded in an iframe).

Set Up Non-Iframe GoHighLevel Form Tracking

  1. Add the following code to your website directly below your WhatConverts Tracking Script (or email WhatConverts Support at support@whatconverts.com to have the code added for you):
  2. <script type = "text/javascript">
    function wc_track() {
          var els = document.querySelectorAll('div[id="_builder-form"]');
          if (els.length > 0) {
              Array.prototype.forEach.call(els, function(el) {
                  var wrapper = document.createElement('form');
                  el.parentNode.insertBefore(wrapper, el);
                  wrapper.setAttribute('class', 'wc_form');
                  wrapper.appendChild(el);
              });
          }
      }
    setTimeout(wc_track, 2000);
    </script>
    

    Once added, log in to WhatConverts:

  3. Go to "Tracking" from the top menu. Select "Forms" and click "Web Forms".
  4. Click the "Add Web Form" button, and select "Manual Setup".
  5. Name your form, select Attribute Type "Class" and enter Attribute Value as wc_form.
  6. Click "Finish".

Your non-iframe GoHighLevel form should now be tracked. WhatConverts will capture all submissions from this form and create leads with full attribution data.

Note: The above code adds form tags and a class of wc_form to the GHL form. Since all GHL forms share the same <div> and ID _builder-form, this code will be applied to every GHL form on your website.

Method 2: Track Iframe GoHighLevel Forms

Use this method if the form is embedded inside an iframe.

Set Up Iframe GoHighLevel Form Tracking

  1. Edit the form in GoHighLevel and add a Custom HTML element.
  2. In the HTML element, Add your WhatConverts Tracking Script and the code below underneath your Tracking Script:
  3. <script type = "text/javascript">
    wc_frame_parent = 'Replace with Website URL(https://www.example.com)';
    
    var els = document.querySelectorAll('div[id="_builder-form"]');
    if (els.length > 0) {
            Array.prototype.forEach.call(els, function(el) {
                var wrapper = document.createElement('form');
                el.parentNode.insertBefore(wrapper, el);
                wrapper.setAttribute('class', 'wc_form');
                wrapper.appendChild(el);
            });
    };
    </script>
    

    Track GoHighLevel Web Forms

  4. Add the following code to your website under your WhatConverts Tracking Script (or contact WhatConverts Support to have it added for you):
    <script type = "text/javascript">
    wc_frame_target = 'Use the iframe's Name, ID, or Class attribute';
    </script>
    

    Replace the bolded section above with one of the below

    Name: wc_frame_target = '[name=example]';
    ID: wc_frame_target = '#example';
    Class: wc_frame_target = '.example';

  5. Once the code is added:

  6. Log in to your WhatConverts profile.
  7. Go to "Tracking" from the top menu. Select "Forms" and click "Web Forms".
  8. Click the "Add Web Form" button, and select "Manual Setup".
  9. Name your form, select Attribute Type: as "Class" and enter Attribute Value: as "wc_form".
  10. Click "Finish".

Your iFrame GoHighLevel form should now be tracked. WhatConverts will capture all submissions from this form and create leads with full attribution data.

Method 3: Track Multi-Step GoHighLevel Forms

Use this method if the form includes multiple steps.

Set Up Multi-Step GoHighLevel Form Tracking

  1. Check if the form is an iframe:
    • If the form is in an iframe, follow the steps outlined in the Method 2: Track Iframe GoHighLevel Forms section above.
    • If the form is not in an iframe, continue to step 2.
  2. Add the following code to your website under your WhatConverts Tracking Script:
  3. <script type = "text/javascript">
    function wc_track() {
          var els = document.querySelectorAll('div[id="_builder-form"]');
          if (els.length > 0) {
              Array.prototype.forEach.call(els, function(el) {
                  var wrapper = document.createElement('form');
                  el.parentNode.insertBefore(wrapper, el);
                  wrapper.setAttribute('class', 'wc_form');
                  wrapper.appendChild(el);
              });
          }
      }
    setTimeout(wc_track, 2000);
    </script>
    
  4. Log in to your WhatConverts profile.
  5. Go to "Tracking" from the top menu. Select "Forms" and click "Web Forms".
  6. Click the "Add Web Form" button, and select "Manual Setup".
  7. Name your form, select Attribute Type: as "Class" and enter Attribute Value: as wc_form.
  8. Set up an Alternate Submit button with Attribute Type "Class" and enter Attribute Value as ghl-submit-btn.
GoHighLevel Web Form Setup

Your multi-step GoHighLevel form should now be tracked. WhatConverts will capture all submissions from this form and create leads with full attribution data.

Test Your GoHighLevel Form Tracking

After setting up tracking using any of the methods above, verify that form submissions are being captured correctly:

  1. Go to the page where your GoHighLevel form is located.
  2. Fill out the form with test information and submit it.
  3. Return to your WhatConverts profile and view your form leads.
  4. Find the test form submission and check its data.

If your test lead appears correctly, your GoHighLevel form tracking is working properly.

Related Topics

  • What is Web Form Tracking?
  • Track Web Forms Automatically with the Form Finder
  • Track Multi-Step Forms
  • Track Iframe 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
ready to get marketing clarity?

Grow your business with WhatConverts

14 days free trial Easy setup Dedicated support
G2 Best Results Summer 2026 Badge
G2 Best Relationship Summer 2026 Badge
G2 Best Usability Summer 2026 Badge
G2 Most Implementable Summer 2026 Badge
G2 Momentum Leader Summer 2026 Badge