HubSpot Integration

Send2CRM client script

The client script can be added to HubSpot via Settings > Advanced > Head HTML. Include the main snippet and any client-side config then add the file to the <head> of the main page.

<script>(function(s,e,n,d2,cr,m){n[e]=n[e]||{};m=document.createElement('script');m.onload=function(){n[e].init(d2,cr);};m.src=s;document.head.appendChild(m);})('https://cdn.jsdelivr.net/gh/FuseInfoTech/send2crmjs/send2crm.min.js', 'send2crm', window, 'yourDomain.com', 'yourId'); window.addEventListener('send2crmLoading', (evt) => { send2crm.applySettings({ formSelector: 'form', formListenOnButton: true, debug: false, }); }); </script>

Form identifiers

HubSpot forms do not include an id attribute. The action attribute may be enough to uniquely identify each form; if not, use a condition to match the hidden UniqueID field value - see the example above.

Â