Growform Multi Step Form Builder
  • Use cases
    • Generazione di contatti nel settore finanziario e assicurativo
    • Generazione di lead
    • Generazione di contatti legali
    • Pagina immobiliare
    • Generazione di lead per il solare e l’energia
    • Generazione di lead per l’edilizia e i mestieri
  • Modelli
  • Integrazioni
  • Prezzi
  • Contatto
  • Log in
  • Free trial

Come utilizzare i contenitori GTM personalizzati con Growform

Google Tag Manager (GTM) è un “tag manager” estremamente potente, che consente di aggiungere facilmente tag standard e personalizzati al proprio sito web o modulo.

Per fornire alcuni esempi di ciò che si può fare con i contenitori GTM personalizzati, è possibile:

  • Attivare un evento pixel quando gli utenti raggiungono un determinato passaggio o completano il modulo
  • Attivare una conversione di annunci Google quando gli utenti fanno clic su un determinato pulsante
  • Utilizzate un registratore di schermo come Fullstory per vedere come gli utenti si comportano all’interno del vostro modulo.
  • Praticamente qualsiasi altra cosa vi venga in mente!

Indice dei contenuti

    • 🎉 This guide is available in video form!
    • A quick refresher on the main GTM concepts
    • Read This First: The Ridiculously Complicated Issues Caused By iFrames, And Why Growform Uses Two Containers
  • 1 – Create or log into your Google Tag Manager account
  • 2 – Download our starter parent and child containers
  • 3 – Import our parent and child containers to your GTM account
  • 4 – Publish your containers and add them to your Growform form
  • What next?
  • Frequently asked questions

🎉 This guide is available in video form!


This 13 minute video walks you through every little step you need to get your Google Tag Manager containers set up with Growform:


Once you’ve finished the video, head to the bottom of this post to see what you can do next.


A quick refresher on the main GTM concepts


Before we get started, here’s a quick refresher on the main GTM concepts:

  • A container is a distinct “area” or repository that holds tags, triggers and variables. Containers are versioned, and GTM has a handy version control system to let you “rewind” if you mess something up.

  • A tag is a piece of code that should fire when something happens. GTM has a library of standard tags you can use (like Google Ads), but you can also add your own custom HTML tags. Using standard tags is often advisable, as it introduces less complexity and room for error.

  • A trigger is the “when” a tag should fire. Common use-cases are “All page views”, or when a certain button is clicked. When a particular condition (or set of conditions) is met, the trigger is activated and all tags under that trigger are fired.

  • A variable is a small piece of storage inside GTM that makes it easy to use and re-use data. As an example, we store the form ID inside a GTM variable to make it easy to reuse and insert into your own tags.


Growform actually uses two containers rather than one, which is explained in the following section…

Read This First: The Ridiculously Complicated Issues Caused By iFrames, And Why Growform Uses Two Containers


Like many embedded code snippets, Growform runs inside an iFrame to make sure it doesn’t mess with your website (and vice-versa).

This beautiful illustration shows captures it nicely:

An iFrame is like its own browser window.

The iFrame cannot see anything on your website, and your website cannot see anything inside the iFrame.

They are effectively two distinct websites.

This poses serious issues for tracking – especially since most advertising partners will not function inside an iFrame.

To navigate around this challenge, we’ve consulted some super advanced GTM experts and created two GTM containers – which we’ve made ready for you to download and import into your own GTM account:

  • A child container. The child container’s job is to keep track of what’s happening inside your form and send it up to the parent container. It can also be a useful place to fire tags that need to “see” inside the iFrame, like screen recording apps.
  • A parent container that receives events from the child container and actually fires the tags.

    So, we can add a child and parent container to our diagram as follows, with an arrow representing communication between the two containers:
To recap:
  • Growform forms run inside an iFrame. Trying to insert tags into iFrames and getting them to work is doomed for failure.
  • To get around this problem, we’ve created a parent and a child container for you.
  • The child container picks up on things happening inside the iFrame and sends information to the parent container.
  • The parent container receives the information from the child container and fires the actual tag… and the tag actually works.
  • We’ve created these containers and made them available for download to act as a “starting point” for your tagging adventures.

It sounds complicated, but we’ll walk you through a couple of examples to get you firing tags in no time.

Here’s how to get set up…

1 – Create or log into your Google Tag Manager account

First, navigate to Google Tag Manager and create a new account if you do not have one already.

You may need to create an account inside Google Tag Manager once you’re set up too – at which point you should click the “three dots” menu on your account and hit “Create container”.

You should now create two containers – A parent container and child container, and both should be set to “Web” as the target container:

(It doesn’t matter what you call your containers, but we recommend “Growform custom parent container” and “Growform custom child container).

2 – Download our starter parent and child containers

You can download our parent and child “starter” containers here:

💾 Growform parent container
💾 Growform child container

Don’t delete or change any tags, variables or triggers that come with the starter containers (unless you really know what you’re doing) – your containers rely on these to function properly.

3 – Import our parent and child containers to your GTM account

Now you have our containers downloaded, it’s time to import them into the brand new, blank containers that you created in step 1.

Open up your parent container and navigate to “Admin”, then hit “Import container”. You’ll see a screen like this:


Select the growform-parent-container.json (downloaded in step 2), and choose “existing workspace”, then “Default workspace”. You’re safe to use the overwrite option, as your container was blank anyway.

You should now repeat this process for the child container, so you have both a child container and parent container in your account, populated with the tags and variables we set up for you.

4 – Publish your containers and add them to your Growform form

Hit “Submit” on both of your containers so they’re published:


Now your containers are published, they’re in a working state and ready to be added to your Growform form.

Navigate to your form in Growform, hit “Form settings” and then “Tracking & Tagging”. Find the Google Tag Manager box and copy your parent and child container IDs into each. Don’t forget to hit save!

At this point, you have an exact copy of the “default” containers we use under the hood to fire the other tags (like Facebook and Google Ads).

This means any other settings you have on the tracking & tagging settings page will still work – but will be fired by your custom container, rather than ours. Cool, huh!

By the same token, it also means this form’s firing functionality is dependent on your GTM containers staying intact, so be careful with the containers, and don’t remove anything that’s already there.

What next?

Now you’ve made it through the basic setup, you’re ready to start firing some tags.

Read our guides below to get to get started with some real life use-cases:

How to fire a tag when a user changes step or completes the form
How to fire a tag when a user presses a certain button
How to fire a screen recording tag or similar

Frequently asked questions

I need to fire a tag when a user clicks a certain element, but can’t work out how

Due to the way React works, it can be difficult to use class selectors (.classnames) to target particular elements, so we recommend following this guide if you wish to target a button.

If you want to target some other element, you can always contact support and we’ll be able to target pretty much anything.

Should I fire a tag in the parent container, or the child container?

Tags should almost always be fired in the parent container: the child container’s job is simply to “tell” the parent container about what’s happening inside Growform’s iFrame, so tags can be fired outside it, in the parent.

For a basic guide to firing your first tag, see here.

Why is this so complicated? Can’t I just use my own GTM container?

Eugh, we know. It’s just part and parcel of working with iFrames.

In theory, you could create your own child container from scratch and add it to your Growform settings.

But this would be next to useless, as tags would only fire inside the iFrame.

By using our “starter” containers, you get access to a bunch of functions and tags that will let you do everything you need to do.

What happens to my Growform tracking & tagging settings once I add my own containers? Will my Facebook tag still fire after this?

Once you add the our starter containers, Growform will pass the details from your tracking & tagging settings page into your new containers, and everything will function as normal - as long as you keep the containers intact, which are now doing the heavy lifting!

Can I use my custom containers for multiple forms?

There are 2 approaches when working with multiple forms:

a.) Use the same containers for all forms: This is a perfectly viable option. The form ID and other information is available inside GTM, so you can build logic about what to fire when inside Google Tag Manager. This works particularly well if your forms have similar purposes.

b.) Use different containers for different forms: If you’re managing multiple clients, you can always create a new account for each client. This keeps their tags completely separate and is better for to avoid cross-contamination of tags.

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

  • I 5 migliori esempi di moduli di cattura dei contatti che possono aumentare le conversioni (2025)
  • Cos’è un modulo multi-step di Elementor e come lo migliora Growform?
  • Recensiamo le migliori alternative a Microsoft Forms per una migliore personalizzazione e controllo
  • Ecco la nostra recensione dei migliori costruttori di moduli per siti WordPress
  • Le nostre comprovate strategie di generazione di lead in entrata per attirare lead qualificati

Categories

  • Conformità
  • Convertri
  • CRO
  • Design della forma
  • Generazione di lead
  • Google Tag Manager
  • Hubspot
  • Immobili
  • Integrazione
  • Marketing
  • Non categorizzato
  • Progettazione di forme a più fasi
  • Prospezione
  • Speciali di lead generation
  • Strumenti
  • TrustedForm
  • Tutorial
  • Tutorial Unbounce
  • Unbounce
  • Utilizzo di growform

Try Growform Multi Step Form Builder »

Guides

  • Come creare bellissimi moduli Asana senza codice
  • Come creare moduli multi-fase di Hubspot (senza codice)
  • Come aggiungere un modulo multi-fase Growform a Instapage
  • Come aggiungere un modulo multi-fase Growform a Leadpages
  • Come aggiungere un modulo multi-fase Growform a Unbounce
  • Come aggiungere un modulo multi-fase Growform a Webflow
  • Come aggiungere un modulo multi-fase Growform a WordPress

Features

  • Tutte le caratteristiche
  • Padroneggia i moduli a logica condizionale: Una guida con esempi
  • Guida ai moduli conversazionali: Crea facilmente moduli coinvolgenti
  • Moduli incorporabili per il vostro sito web
  • Moduli di cattura dei lead che convertono nel 2023: 5 potenti suggerimenti + esempi
  • Verifica dei piombi: Metodi in tempo reale e di massa per dati accurati
  • Salti logici: Crea moduli dinamici per migliorare il coinvolgimento degli utenti
  • TrustedForm di ActiveProspect: La guida definitiva per il 2024
  • Come impostare Jornaya (costruire un modulo Jornaya) con Growform
  • Come creare un modulo guidato: Guida passo passo
  • Regole per la generazione di lead della FCC: Come garantire la conformità con il consenso 1-1
  • Alternative

More

  • Partner affiliati
  • Termini di servizio
  • Privacy e GDPR
  • Service status
  • Blog
  • Help docs
  • Climate pledge
  • Glossario Growform: Master Conversion Forms oggi
© 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