Growthable

How to Configure ActiveProspect TrustedForm on a GHL Form

Updated June 2, 2023

Without proper consent tracking, your lead generation forms may fall short of compliance requirements and advertiser standards. This guide walks you through adding ActiveProspect TrustedForm to a GoHighLevel form — from creating the custom field and injecting the tracking script to replacing the form ID and hiding the certificate URL field with custom CSS.

To enable ActiveProspect consent tracking on a form, follow these steps: 

Navigate to Sites, select Forms, choose Builder, and then navigate to Custom Fields on the right-hand side. Scroll down, click Add Custom Field, and choose Single Line on the Text Input Category. 

ActiveProspect Consent Tracking Setup in GoHighLevel Forms — screenshot 1

Create a Custom Short Text Field named ‘xxTrustedFormCertUrl‘ and place it above the submit button by dragging the field into your form.

ActiveProspect Consent Tracking Setup in GoHighLevel Forms — screenshot 2

Access the Integrate Form tab and select a desired Layout type from the available options. Click on the Copy Form Link button. Open the form in a Chrome browser by pasting the copied form link into the browser’s address bar.

ActiveProspect Consent Tracking Setup in GoHighLevel Forms — screenshot 3
ActiveProspect Consent Tracking Setup in GoHighLevel Forms — screenshot 4
ActiveProspect Consent Tracking Setup in GoHighLevel Forms — screenshot 5

Copy and Paste this Custom Script:

<script type=”text/javascript”>

  (function() {

      var field = ‘xxTrustedFormCertUrl’;

      var provideReferrer = false;

      var invertFieldSensitivity = false;

      var tf = document.createElement(‘script’);

      tf.type = ‘text/javascript’; tf.async = true;

      tf.src = ‘http’ + (‘https:’ == document.location.protocol ? ‘s’ : ”) +

        ‘://api.trustedform.com/trustedform.js?provide_referrer=’ + escape(provideReferrer) + ‘&field=’ + escape(field) + ‘&l=’+new Date().getTime()+Math.random() + ‘&invert_field_sensitivity=’ + invertFieldSensitivity;

      var s = document.getElementsByTagName(‘script’)[0]; s.parentNode.insertBefore(tf, s); }

  )();

function trustedFormCertUrlCallback(certificateUrl) {

    document.getElementsByName(‘FORMID’)[0].value = certificateUrl; 

  document.getElementsByName(‘FORMID’)[0].dispatchEvent(new Event(“input”));

}

</script>

<noscript>

    <img src=”http://api.trustedform.com/ns.gif” />

</noscript>

Return to the Fields section, specifically the Standard category. Scroll down, select the HTML option, and drag and place it below the Button tab.

ActiveProspect Consent Tracking Setup in GoHighLevel Forms — screenshot 6
ActiveProspect Consent Tracking Setup in GoHighLevel Forms — screenshot 7

Click on the HTML tab, select Edit Script, and Paste the script you copied into the designated area.

ActiveProspect Consent Tracking Setup in GoHighLevel Forms — screenshot 8
ActiveProspect Consent Tracking Setup in GoHighLevel Forms — screenshot 9

Scroll down until you see the FORMID, and replace it.

ActiveProspect Consent Tracking Setup in GoHighLevel Forms — screenshot 10

Return to the tab where the form is currently open, and on the Chrome browser, right-click and choose the option to Inspect the page.

ActiveProspect Consent Tracking Setup in GoHighLevel Forms — screenshot 11

Select the mouse pointer option.

ActiveProspect Consent Tracking Setup in GoHighLevel Forms — screenshot 12

Hover over the field that we added, just above the submit button, and click.

ActiveProspect Consent Tracking Setup in GoHighLevel Forms — screenshot 13

By doing this, you can view the Form Field Name. Double-click on it and copy the alphanumeric string.

ActiveProspect Consent Tracking Setup in GoHighLevel Forms — screenshot 14

Return to the form and replace the two occurrences of “FORMID” with the string you have just copied.

ActiveProspect Consent Tracking Setup in GoHighLevel Forms — screenshot 15

Now, we want to hide this form field.

ActiveProspect Consent Tracking Setup in GoHighLevel Forms — screenshot 16

Please copy the following Custom CSS code:

.menu-field-wrap:nth-child(4) {

display: none;

}

Afterward, navigate back to the form and access the Styles section. From there, find the Custom CSS Dashboard and paste the copied code.

ActiveProspect Consent Tracking Setup in GoHighLevel Forms — screenshot 17

Ensure to note the position of the “xxTrustedFormCertURL” field within our form.

ActiveProspect Consent Tracking Setup in GoHighLevel Forms — screenshot 18

Paste the Custom CSS code and modify the numerical value to match the position of the field. Since mine is in the 5th position, I’ll change the value to “5”.

ActiveProspect Consent Tracking Setup in GoHighLevel Forms — screenshot 19

You can now save the form and hit refresh.

ActiveProspect Consent Tracking Setup in GoHighLevel Forms — screenshot 20
ActiveProspect Consent Tracking Setup in GoHighLevel Forms — screenshot 21

Keep learning