Lead Capture Tools

Yurii
Participant

How can I track pop-ups form submissions in GTM or GA?

SOLVE

Hi! Does anybody know how to create a tag in GTM to treck pop-ups forms submissions? I use 3 white hats solutions to track general forms, but, unfortunately, it doesn't work for the pop-ups forms. 

1 Accepted solution
mark_vande_haar
Solution
Contributor

How can I track pop-ups form submissions in GTM or GA?

SOLVE

The click class is 'leadin-close-button' when somebody submits on the pop-up form.

 

If you have more than one pop-up form you'll need to click URL to your trigger that matches the URLs on your pop up.

 

I take it you if you know GTM you can take it from here.

View solution in original post

15 Replies 15
Hjalte_Bach
Participant

How can I track pop-ups form submissions in GTM or GA?

SOLVE

I have sucessfully set up my form tracking in GTM using their hubspot form success listener using the custom data layer variable name "hs-form-guid". This just doesn't work on pop-up forms, this data layer variable is undefined for popup forms. I'm trying to figure out what kind of custom data layer variable that can trigger the form success listener tag. 

The thing is, if I have to use "leadin-close-button" in the click class as the trigger to fire the tag for a successful popup submission, I'm totally dependent on IF the user actually press the close button after submission?

That is really not reliable. There must be a way to track a successful popup submission just like regular forms without being dependant on the user clicks a close button on the form submission. 

I'm surely missing something 🙂

0 Upvotes
EPolitis
Member

How can I track pop-ups form submissions in GTM or GA?

SOLVE
Hi, the popup forms are not captured by HS form listener. Try my workaround above using the leadin-thank-you-wrapper element. It doesn't depend on the user's clicks and it is only tracking if the pop up form was submitted successfully
Hjalte_Bach
Participant

How can I track pop-ups form submissions in GTM or GA?

SOLVE
Awesome, makes sense! Will try that, thank you, you saved me some work there
0 Upvotes
EPolitis
Member

How can I track pop-ups form submissions in GTM or GA?

SOLVE

Hi guys

 

I had the same issue and this is what has worked for me - using the 'leadin-thank-you-wrapper' element after the form submission (the popup message element). See below the trigger definition in GTM:

Hubspot popup form TY message.png

You have to check 'observe DOM changes' since the popup TY message element is not there when the page loads.

BTW, tracking the leadin-submit click class wasn't good enough as this was fired also on non-successful form submission. Tracking the popup message ensures that only successful submissions are being tracked

Hope this will work for you as well.

KHoutenbos
Participant

How can I track pop-ups form submissions in GTM or GA?

SOLVE

How do you set up the tag after that? Is it still an event?

0 Upvotes
jakubc
Participant

How can I track pop-ups form submissions in GTM or GA?

SOLVE

@EPolitis thank you!

0 Upvotes
ggz
Member

How can I track pop-ups form submissions in GTM or GA?

SOLVE

Thanks for this.
In my case, I want to track the clicks on the pop-up as the link opens a new tab.
How would you configure that event? The id is:

gtm.elementClasses:"leadin-button leadin-advance-button leadin-button-secondary"

 

Thank you

0 Upvotes
roberto_ty
Participant

How can I track pop-ups form submissions in GTM or GA?

SOLVE

Is there any update?

0 Upvotes
Ella_BTT
Participant

How can I track pop-ups form submissions in GTM or GA?

SOLVE

This solution works if you are including a download from your pop-up. For example an ebook download. At the end of the form I take them to a "thank you" page to recieve the ebook. I have added a tracking code to that thank-you URL so that I can track who landed on that page from the pop-up. 

If it's just a contact us request or anything where you aren't offering them something at the end this doesn't work because the user won't necessarily click on the last button after they fill out the form. 

0 Upvotes
KTice
Member

How can I track pop-ups form submissions in GTM or GA?

SOLVE

Agree w/everyone here. I identified click class, both for my Sign up button (leadin-button leadin-advance-button leadin-button-primary) and for the submit button (leadin-button leadin-button-primary leadin-primary leadin-submit) on my pop up form and neither is working. I'm trying to set it up in conjuction with a GoogleAd promotion tracking lead sign ups and this is making it awfully difficult. Would be great if there was a way to add the tag information directly into a backend window in hubspot, if that were a thing. Anyone have any ideas?

0 Upvotes
RRichardson
Member | Gold Partner
Member | Gold Partner

How can I track pop-ups form submissions in GTM or GA?

SOLVE

I'm still trying to get popups to work in Tag Manager I've set up a Form Submission trigger with click class leadin-submit, also tried with Click all elements and click class leadin-submit but it's not working. Any ideas.

 

0 Upvotes
mark_vande_haar
Solution
Contributor

How can I track pop-ups form submissions in GTM or GA?

SOLVE

The click class is 'leadin-close-button' when somebody submits on the pop-up form.

 

If you have more than one pop-up form you'll need to click URL to your trigger that matches the URLs on your pop up.

 

I take it you if you know GTM you can take it from here.

YuryZelianko
Member

How can I track pop-ups form submissions in GTM or GA?

SOLVE

Hi,

 

I tried to make it through GTM but it doesn't work. Could you please describe it in details?

0 Upvotes
Andrii23
Member

How can I track pop-ups form submissions in GTM or GA?

SOLVE

We have the same problem with pop-up tracking. Does someone resolve this issue?

0 Upvotes
Yurii
Participant

How can I track pop-ups form submissions in GTM or GA?

SOLVE

Thanks Mark! This solution sounds more elegant than my one. I simply create two tags for two pop-up forms using a form submission trigger, which is restricted by click IDs that I've extracted from the pop-up forms. I should definitely try your solution.

0 Upvotes