APIs & Integrations

Jools619
Participant

Adding an event script to Hubspot popup form

Hi

On our site there is a subscribe form that pops up in the bottom right of the page.
There is a line of GA script we would like to add:

dataLayer.push({'event': 'emailSubscriberPopup'});

Ive gone into the dashboard to see if there is an option to add scripts by clicking the edit button for this form, however I cannot seem to find anything.

Has anyone had any luck doing something similar?

Thanks

Jools

0 Upvotes
1 Reply 1
WendyGoh
HubSpot Employee
HubSpot Employee

Adding an event script to Hubspot popup form

Hey @Jools619 ,

 

As mentioned by my colleague Derek here:

 

Pop-up forms don't currently trigger global form events. Another user in the community discovered the following work around: How can I track pop-ups form submissions in GTM or GA? 
0 Upvotes