How to embed hubsport form in optinmonster pop up which requires html


#1

Hi we are using optinmonster popup software and they require us to embed html not script in order to show our form in their pop up, is this possible?

From their website:

"https://app.optinmonster.com/account/edit/?om_optin_id=417593

When using a Custom HTML integration, conversions are not automatically tracked until you add the class om-trigger-conversion to the submit button for your form."


#2

Hi @Jonny_Katz

The embed code is the only way we support adding a form to a page, and if they allow JavaScript to be used at all, we do have an option in the embed code that would allow you to add a custom class to the submit button: submitButtonClass

hbspt.forms.create({ 
    portalId: '',
    formId: '',
    submitButtonClass: 'om-trigger-conversion'
});

If they only allow HTML, that’s not something we’d be able to support with HubSpot forms, as they require the use of JavaScript to support things like smart fields and prepopulating known fields, and it’s also required for lead tracking.


#3

Hey @Jonny_Katz,

As @dadams suggested, you can add the required class to track form conversions by modifying the Javascript form embed code. Our Custom HTML integration option supports HubSpot’s custom form embed. :slight_smile:

We also have a guide on using custom HubSpot form embeds in OptinMonster at http://optinmonster.com/docs/how-to-connect-optinmonster-with-custom-hubspot-form/