GoHighLevel Forms
Overview
If you are using GHL forms on your website, there are a few options for tracking that will depend on your form setup on your site.
If your forms are embedded directly on your site, you may be able to use our built in form tracker or a standard on submit form event script.
Iframe
If your form is embedded as an IFrame this will not work with out the box tracking as we are unable to read the submission events from within an IFrame. We would recommend either embedding the form directly on the site, and if that isn't possible to follow the below instructions to allow Ruler to track the submission and the visitor identifiers such as Email.
Step One - Setup the Redirect
In order to allow Ruler to track the form submission, you will need to ensure your Iframe form redirects to a thank you page hosted on your site.
In your GHL form builder, go to Form Settings → On Submit and set the action to "Redirect to URL". Enter your thank you page URL as the base (e.g. https://yoursite.com/thank-you). Ensure you have the Thank you page setup first.
Step Two - Pass the Variables to the URL
In your form's submit action, set the redirect URL to include the email merge field as a parameter: https://yoursite.com/thank-you?email={{contact.email}}
https://yoursite.com/thank-you?email={{contact.email}}GHL will automatically replace 'contact.email' variable with the value the user just submitted before redirecting.
You may need to confirm and check with GHL the correct merge field values for the values you wish to track from the form submission.
Step Three - Add your Ruler Scripts
Once the redirect is in place, you will need to ensure you have implemented the following
- Your Ruler Analytics JavaScript - This should be present on all pages on your website
- Additional Thank you page conversion capture script - Please note this script should only go on the thank you page and not all pages
If you have any questions, please get in touch with a member of the team.