GatedContent.com forms can send submissions to Hubspots forms via the Hubspot JavaScript API to capture user data within your Hubspot instance. In addition, GatedContent.com can utilise the Hubspot REST API to retrieve contact information for form pre-population.


In addition, GatedContent.com can integrate with the Hubspot meeting scheduler to allow users to book meetings with your employees after form submission.


Integration requirements

Form submission capture


A Hubspot form must be created to capture the data from GatedContent.com form submissions. Normally only a single Hubspot form will be required that should contain all possible fields from all GatedContent.com form types, including hidden fields.


Please ensure that validation is disabled on all fields on the Hubspot form. Validation rules can cause issues with form submissions.


In addition, ensure that all your GatedContent.com field names match the HTML name of the receiving fields on your Eloqua forms.


Once you have created your form, add the following details in the Apps area:

  • Your Hubspot account ID
  • The ID of the Hubspot form that should receive submissions from GCDC gates


Overriding the Hubspot form ID for some gates

Because form submissions to Hubspot utilise the Hubspot JS API, you can't submit to a different Hubspot form on a gate-by-gate basis using the "Override submission URL" option in the form type editor (although this option can still be used to divert submissions to a different, non-Hubspot platform). Instead, you need to create a new hidden field called "hubspotFormIDOverride". If this field exists on a gate and contains a value, it is assumed to be a Hubspot form ID and the submission will be sent to this form instead of the account default. You can then use rules or pre-population settings to set a value in this hidden field where needed.


Pre-population data


In order for GatedContent.com to retrieve contact data from your Hubspot instance for form pre-population, you will need to create a Private App within your Hubspot account and provide the relevant details in the Apps area. Follow these steps:

  1. Sign into your Hubspot account
  2. In your HubSpot account, click the settings icon in the main navigation bar.
  3. In the left sidebar menu, navigate to Integrations > Private Apps.
  4. Click Create private app.
  5. On the Basic Info tab, configure the details of your app:
    1. Enter as the app name: GatedContent.com
    2. Optionally enter a description for this app integration
  6. Click the Scopes tab.
  7. Grant the following scopes, with Read access only:
    1. crm.objects.contacts
    2. crm.schemas.contacts
  8. Click create app
  9. Reveal and copy your private app key and add this in  the Apps area.


Once fully integrated, you will be able to select Hubspot contact record fields to pre-populate GatedContent.com fields with from the field editor.


Please note that for pre-population to work, you must include the Hubspot tracking script on any webpage where GatedContent.com gates are located.



Meeting Scheduler


In order to activate integration with the Hubspot meeting scheduler, you simply need to provide us with the name of the scheduler you want to use. Once integrated, you will be able to create scheduler gates within your GatedContent.com account.



Webinar Integration


Hubspot has a number of built-in integrations to webinar platforms. If we take GotoWebinar as an example, when this integration is activated in Hubspot an additional action of “Add Contact to Webinar” becomes available i.e. within a Workflow.


It is then possible to setup a Workflow in Hubspot that triggers off of a property change on a contact. GatedContent.com can be configured to send values in form submission to update contact properties that can be used to setup Workflow triggers, for example an Asset Name, a Gate Name, a Webinar ID.


GatedContent.com also has a Webinar Management Module that allows for the creation of drop down options within user facing forms that can be organised by sessions and topics. Each session can send a unique ID which can then be used in Hubspot Workflows to automate registration to the corresponding Webinar in the external platform (e.g. GotoWebinar).