Reporting & Analytics

Dbedsole1
Member

Workaround for Google Tag Manager on CTAs/Forms

SOLVE

We use Google Tag Manager (GTM) to track button clicks with our site. We are noticing with the non-legacy CTA buttons and the new forms that GTM is not seeing the button click. Has anyone experienced this/does anyone have the proper way to set these up so it captures these events? On the GTM preview it doesnt even show there is a button click

0 Upvotes
1 Accepted solution
alyssamwilie
Solution
Recognized Expert

Workaround for Google Tag Manager on CTAs/Forms

SOLVE

For HubSpot forms you would need to setup a custom listener in GTM to track submissions or other events. Here's a tutorial you can follow to do so: https://www.analyticsmania.com/post/track-hubspot-forms-with-google-tag-manager-and-google-analytics...

 

For buttons, even legacy should be able to be tracked with a regular Button Click trigger (https://analytify.io/how-to-track-button-clicks-in-google-tag-manager/), if tracking All Clicks doesn't work you could try tracking clicks based on element class. All legacy CTA buttons have the class 'hs-button'.

 

 

If this answer solved your question, please mark it as the solution.

Alyssa Wilie Profile Image

Alyssa Wilie

Web Developer at Lynton

Learn HubL | Get Marketing Insights

Lynton's HubSpot theme Rubric now available. Click to download.

View solution in original post

2 Replies 2
alyssamwilie
Solution
Recognized Expert

Workaround for Google Tag Manager on CTAs/Forms

SOLVE

For HubSpot forms you would need to setup a custom listener in GTM to track submissions or other events. Here's a tutorial you can follow to do so: https://www.analyticsmania.com/post/track-hubspot-forms-with-google-tag-manager-and-google-analytics...

 

For buttons, even legacy should be able to be tracked with a regular Button Click trigger (https://analytify.io/how-to-track-button-clicks-in-google-tag-manager/), if tracking All Clicks doesn't work you could try tracking clicks based on element class. All legacy CTA buttons have the class 'hs-button'.

 

 

If this answer solved your question, please mark it as the solution.

Alyssa Wilie Profile Image

Alyssa Wilie

Web Developer at Lynton

Learn HubL | Get Marketing Insights

Lynton's HubSpot theme Rubric now available. Click to download.
STierney
Community Manager
Community Manager

Workaround for Google Tag Manager on CTAs/Forms

SOLVE

Hey @Dbedsole1 - thanks for posting in the Community!

I'd like to tag in some experts here to see if they have insight on this behavior. @Bryantworks, @alyssamwilie, and @HFisher7 - any thoughts on how to capture non-legacy CTA clicks within Google Tag Manager?

Shane, Community Manager





loop


Loop Marketing is a new four-stage approach that combines AI efficiency and human authenticity to drive growth.

Learn More




0 Upvotes