diff --git a/blocks/forms/forms.js b/blocks/forms/forms.js index 7a5b191a0..15a91e86e 100644 --- a/blocks/forms/forms.js +++ b/blocks/forms/forms.js @@ -36,7 +36,7 @@ export function createHubSpotForm(formConfig, target, type = '') { }, onFormSubmit: (hubspotForm) => { createSalesforceForm(hubspotForm, formConfig); - if (type === 'newsletter') { + if (type === 'newsletter' || type === 'lab-notes') { // eslint-disable-next-line no-undef console.log('Form submitted'); dataLayer.push({ 'event': 'new_subscriber' }); diff --git a/templates/blog/blog.js b/templates/blog/blog.js index 0141ef447..db0426ec3 100644 --- a/templates/blog/blog.js +++ b/templates/blog/blog.js @@ -92,7 +92,7 @@ export default async function decorate() { }), ); - loadHubSpotScript(createHubSpotForm.bind(null, formConfig, sidebarIframeID)); + loadHubSpotScript(createHubSpotForm.bind(null, formConfig, sidebarIframeID, 'lab-notes')); spectraNewsletter.appendChild(sidebar); }