From dd494dfcaf7597c6d52a6446affd28fc06d02cd1 Mon Sep 17 00:00:00 2001 From: dev-rajneeshkumar Date: Fri, 17 Jan 2025 13:08:09 +0530 Subject: [PATCH] NL event added --- blocks/forms/forms.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/blocks/forms/forms.js b/blocks/forms/forms.js index cc7ffe8a0..7a5b191a0 100644 --- a/blocks/forms/forms.js +++ b/blocks/forms/forms.js @@ -38,7 +38,8 @@ export function createHubSpotForm(formConfig, target, type = '') { createSalesforceForm(hubspotForm, formConfig); if (type === 'newsletter') { // eslint-disable-next-line no-undef - dataLayer.push({ event: 'new_subscriber' }); + console.log('Form submitted'); + dataLayer.push({ 'event': 'new_subscriber' }); } }, });