0 votes

HubSpot: Umbraco CMS Integration

A form picker and rendering component for HubSpot forms using two authentication methods: API Key and OAuth.

To use an API key, the following app setting will need to be added to `Web.config`:

<add key="Umbraco.Cms.Integrations.Crm.Hubspot.ApiKey" value="[your API key]" />

The key will be added to all requests made to the HubSpot API and used to authenticate access.

If you prefer not to use an API key, an authentication flow using OAuth is also available. To use this, simply ensure you don't have an API key in your configuration file.

To support multi-region HubSpot forms, the following app setting is needed in `Web.config`:

<add key="Umbraco.cms.Integrations.Crm.Hubspot.Region" value="[region]" />

For example, forms hosted in EU will use the `eu1` setting.

Backoffice usage

To use the form picker, a new data type should be created based on the HubSpot Form Picker property editor. 

Depending on the configuration, a message will be prompted. 

If OAuth is being used for authentication, then the Connect button will be enabled and trigger the authorization workflow. The access token will be saved into the database and used for future requests.

Revoke action will remove the access token from the database.

Front-end rendering

A strongly typed model will be generated by the property value converter and an HTML helper is available to easily render the form on the front-end.

Ensure your template has a reference to the following using statement:

@using Umbraco.Cms.Integrations.Hubspot.Helpers;

and render the form using (assuming a property based on the created type, with alias `hubspotForm` has been created):

@Html.RenderHubspotForm(Model.hubspotForm)

Changes

1.0.2 (April 14th 2022)
  • Updated Client ID and scopes for the "HubSpot for Umbraco" marketplace app
1.0.1 (March 9th 2022)
  • Fixed HubSpot script path for EU region
1.0.0 (March 9th 2022)
  • Initial release

 

Screenshots

 Download package
version 1.0.2

NuGet install instructions for Umbraco 8.5.0-9+

Install-Package Umbraco.Cms.Integrations.Crm.Hubspot

NuGet install instructions for Umbraco 9+

dotnet add package Umbraco.Cms.Integrations.Crm.Hubspot

Package owner

Umbraco HQ

Umbraco HQ

Umbraco has 7867 karma points
hq

Package Compatibility

This package is compatible with the following versions as reported by community members who have downloaded this package:
Untested or doesn't work on Umbraco Cloud
Version 11.0.x (untested)
Version 10.1.x (untested)
Version 10.0.x (untested)
Version 9.5.x (untested)
Version 9.4.x (untested)
Version 9.3.x (untested)
Version 9.2.x (untested)
Version 9.1.x (untested)
Version 9.0.x (100%)
Version 8.18.x (untested)
Version 8.17.x (untested)
Version 8.16.x (untested)
Version 8.15.x (untested)
Version 8.14.x (untested)
Version 8.13.x (untested)
Version 8.12.x (untested)
Version 8.11.x (untested)
Version 8.10.x (untested)
Version 8.9.x (untested)
Version 8.8.x (untested)
Version 8.7.x (untested)
Version 8.6.x (untested)
Version 8.5.x (100%)
Version 8.4.x (untested)
Version 8.3.x (untested)
Version 8.2.x (untested)
Version 8.1.x (untested)
Version 8.0.x (untested)
Version 7.15.x (untested)
Version 7.14.x (untested)
Version 7.13.x (untested)
Version 7.12.x (untested)
Version 7.11.x (untested)
Version 7.10.x (untested)
Version 7.9.x (untested)
Version 7.8.x (untested)
Version 7.7.x (untested)
Version 7.6.x (untested)
Version 7.5.x (untested)
Version 7.4.x (untested)
Version 7.3.x (untested)
Version 7.2.x (untested)
Version 7.1.x (untested)
Version 7.0.x (untested)

You must login before you can report on package compatibility.

Package Information

  • Package owner: Umbraco HQ
  • Created: 08/03/2022
  • Current version 1.0.2
  • .NET version 4.7.2
  • License MIT
  • Downloads on Our: 27
  • Downloads on NuGet: 646
  • Total downloads : 673