Growform Multi Step Form Builder
  • Use cases
    • Finance & insurance
    • Professional lead generation
    • Legal
    • Real estate
    • Solar & energy
    • Trades & construction
  • Templates
  • Integrations
  • Pricing
  • Contact us
  • Log in
  • Free trial

How to fire a tag when a user presses a certain button

You’ll need to complete our basic GTM container setup before starting this guide.

Table of Contents

    • 🎉 This guide is available in video form!
  • 1 – Identify the button you wish to target
  • 2 – Create a trigger in the parent container
  • 3 – Finally, create your tag, and fire it on your trigger

🎉 This guide is available in video form!


One of the most popular common use-cases for Google Tag Manager with Growform customers is to fire a tag when a user presses a certain button.

By doing this, it’s possible to add users to retargeting audiences (with services like Facebook ads) or fire a goal conversion – even if they haven’t completed your form.

In this example, let’s say we want to fire a Pinterest tag when users hit the “More phone leads” button:

1 – Identify the button you wish to target

Take note of the text on the button and its position: the text on this button is “More phone leads“, and it is the 2nd button on the list.

Then, identify the field ID: select the buttons in the Growform builder, and scroll down, we’ll see the external field ID for the button set is “buttons_99106776357703“:

Knowing that, we now just need to look out for an event matching the following details in the parent container:

eventNamegrowformIframe.growformButtonClicked
buttonTextMore phone leads
buttonId2
fieldIdbuttons_99106776357703

What’s happening here is as follows: The child container automatically sends an event called “growformButtonClicked” whenever a button is clicked, and adds information including the button text and button ID. We’ll use this to build our trigger in the next step.

If that doesn’t make much sense, don’t worry at this point!

2 – Create a trigger in the parent container

Open your parent container and navigate to “Triggers”.

Find out trigger called “Button clicked“.

This trigger will fire whenever the parent container receives an event from the child container called “growformIframe.growformButtonClicked”.

This is a useful place to start, but will fire on all button clicks – so open the trigger, click the “three dots” menu in the top-right corner to copy it… and create a copy called “Clicked more leads button”.

For this example, add the following settings under “some custom events” to target this specific button:

  • fieldId equals buttons_99106776357703
  • buttonId equals 2

(You could alternatively target by the text on the button, but this approach should be a little clearer more maintainable)

Here’s a screen recording of this step:

That’s done – now we have a trigger in the parent container that will fire when only our target button is clicked!

3 – Finally, create your tag, and fire it on your trigger

This is the easy bit – simply create your tag in the parent container, and set it to fire in response to the trigger you created in step 4:

Make sure both containers are saved + published… and you now have a pixel that fires in the nice, reliable parent container when a button is clicked in the child container!

Need help with custom GTM containers? Our team are experienced in advanced tracking & tagging and able to help via online chat within your account.

template_name
_id
friendly_id
above_fold_header
above_fold_description
long_description_header
long_description
how_does_it_work_header
how_does_it_work_text
screenshot_url
template_page_name
featured
how_it_works_new

Post a Comment

Recent Posts

  • Top 5 Lead Capture Form Examples That Can Boost Your Conversions (2025)
  • What Is an Elementor Multi-Step Form & How Does Growform Improve It?
  • We Review The Best Microsoft Forms Alternatives for Better Customization and Control
  • Here’s Our Review of the Best Form Builders For WordPress Sites
  • Our Proven Inbound Lead Generation Strategies To Attract Qualified Leads

Categories

  • Compliance
  • Convertri
  • CRO
  • Form design
  • Google Tag Manager
  • Hubspot
  • Integration
  • Lead generation
  • Lead generation specials
  • Marketing
  • Multi step form design
  • Prospecting
  • Real estate
  • Tools
  • TrustedForm
  • Tutorials
  • Unbounce
  • Unbounce tutorials
  • Uncategorized
  • Using growform

Try Growform Multi Step Form Builder »

Guides

  • Asana
  • Hubspot
  • Instapage
  • Leadpages
  • Unbounce
  • Webflow
  • WordPress

Features

  • All Features
  • Conditional logic forms
  • Conversational forms
  • Embeddable forms
  • Lead capture forms
  • Lead verification
  • Logic jump forms
  • TrustedForm forms
  • Jornaya forms
  • Wizard forms
  • FCC 1-to-1 consent
  • Comparisons

More

  • Affiliate Partners
  • Terms of Service
  • Privacy & GDPR
  • Service status
  • Blog
  • Help docs
  • Climate pledge
  • Growform Glossary: Master Conversion Forms Today
© 2020 - 2024 Growform Ltd. All rights reserved. Growform is a company registered in England and Wales. Company No. 13097518. Registered office: Kemp House, 160 City Road, London, United Kingdom, EC1V 2NX , UK
  • English
  • Français
  • Español
  • Italiano
  • Deutsch