Skip to content

Commit

Permalink
NL event added
Browse files Browse the repository at this point in the history
  • Loading branch information
dev-rajneeshkumar committed Jan 17, 2025
1 parent ce23d1c commit dd494df
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion blocks/forms/forms.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');

Check warning on line 41 in blocks/forms/forms.js

View workflow job for this annotation

GitHub Actions / build

Unexpected console statement
dataLayer.push({ 'event': 'new_subscriber' });

Check failure on line 42 in blocks/forms/forms.js

View workflow job for this annotation

GitHub Actions / build

'dataLayer' is not defined

Check failure on line 42 in blocks/forms/forms.js

View workflow job for this annotation

GitHub Actions / build

Unnecessarily quoted property 'event' found
}
},
});
Expand Down

0 comments on commit dd494df

Please sign in to comment.