Track Tally form conversions with Google Tag Manager

 
This tutorial is a step-by-step guide on how to implement conversion tracking through Google Tag Manager and Facebook pixel for your Tally forms.
 
This guide was created by Digital Growth Marketeer Maarten van den Bossche
This guide was created by Digital Growth Marketeer Maarten van den Bossche


How does it work

🍪
Before you start: Google Tag Manager gives you the ability to drop cookies and other types of tracking. Please be mindful of any Privacy regulations (such as GDPR) when doing so.

Step 1: Installing Google Tag Manager with the Code Injection box

Make sure you have your Google Tag Manager account ready. If you don’t have one yet, you should create one.
  1. Go to your Google Tag Manager container and select Admin → Install Google Tag Manager. You will be shown two pieces of code.
  1. Go to Tally → Custom domains and select the custom domain you want to use. Scroll down to the Code injection field.
  1. There, paste the two pieces of code you found in step one and press Save Changes.
 
It should look like this with your Container ID instead of the GTM-XXXXXXX. 👇🏻
notion image
⚠️
The Google Tag Manager setup will only work if you also have the Google Analytics integration active. If you don’t want to use the integration for tracking, you can just put in a random Measurement ID like G-XXXXXXXXXX.

Step 2: Create Triggers in Google Tag Manager

If you have activated the Google Analytics integration, Tally will send custom events to Google Tag Manager. We need to make Triggers out of those events so we can use them.
There are a few ways you can set these up, depending on how you want to use them afterwards. Below, we’ll describe a few options and their specific use cases.

Building Triggers for Every Page View

Use case: This trigger will allow you to put a retargeting pixel (e.g. for Facebook, Google Ads, …) on every page of the form.
 
  1. Go to Tag Manager → Triggers → New.
  1. Select Custom Event as the Trigger Type.
  1. For Event Name fill in Tally.FormPageView
  1. Give your trigger a name, for example ‘CE - Tally.FormPageView’
  1. Save your trigger
 
notion image
 

Building Triggers for Completed Forms

Use case: This trigger will allow you to put a retargeting pixel or conversion tracking for when a user has submitted a form.
 
  1. Go to Tag Manager → Triggers → New.
  1. Select Custom Event as the Trigger Type.
  1. For Event Name fill in Tally.FormSubmitted
  1. Give your trigger a name, for example ‘CE - Tally.FormSubmitted’
  1. Save your trigger
 
notion image
 

Building Triggers for Specific Page Views

Use case: This trigger will allow you to put a retargeting pixel or conversion tracking for a specific page that the user has visited in your form. This could be useful if you want to track users who started filling in the survey.
 
  • Go to Tag Manager → Variables → User-Defined Variables → New.
  • Select Data Layer Variable as the Variable Type.
  • For Data Layer Variable Name fill in eventModel.event_label
  • Give your Variable a name, for example ‘DLV - eventModel.event_label’
  • Save your Variable
 
notion image
 
  • Go to Triggers → New.
  • Select Custom Event as the Trigger Type.
  • For Event Name fill in Tally.FormPageView
  • Set the radio button ‘This trigger fires on’ to Some Custom Events
  • Set the filter to ‘DLV - eventModel.eventLabel contains Page 1’ or any other page you would like to track. The format will always be ‘Page X’ with X being the number of the page.
  • Give your trigger a name, for example ‘CE - Tally.FormPageView - Page 1’
  • Save your trigger
notion image
 

Step 3: Set up Retargeting Pixels / Conversion Tracking for Triggers

You can now easily set up any retargeting pixels or conversion tracking for those specific triggers. We will go through some frequent scenario’s below.

Send a Conversion to Google Ads when a Form is Submitted

If you haven’t done so already, make sure to add the Conversion Linker to your Tally form.
  1. Go to Tags → New
  1. Select Conversion Linker as Tag Type.
  1. Select All Pages as Trigger
  1. Give your Tag a name like ‘Google - Conversion Linker’
  1. Save your Tag.
notion image
 
Now we can set up the Google Ads conversion:
  1. Go to Tags → New
  1. Select Google Ads Conversion Tracking as Tag Type.
  1. Fill in your Conversion ID, Conversion Label and any other relevant fields. If you don’t know what to put here, this article will help you out.
  1. Select CE - Tally.FormSubmitted as Trigger.
  1. Give your Tag a name like ‘Google Ads - Conversion Tracking - Tally Form Submitted’.
  1. Save your Tag.
 
notion image
 

Send an Event to Facebook for every PageView

To make your life easier, first get the Tag Template for the Facebook Pixel.
 
  • Go to Templates → Tag Templates → Search Gallery.
  • Search for Facebook Pixel and add the template by facebookarchive to your workspace.
    • notion image
 
Now, we can set up the Tag:
  • Go to Tags → New
  • Select Facebook Pixel as the Tag Type.
  • Fill in your Pixel ID and select the Event Name you want to use. If you are only tracking the Tally form with this pixel, we recommend using Standard → PageView.
    • notion image
  • Set CE - Tally.PageView as Trigger
  • Give your Tag a name like ‘Facebook - PageView’.
  • Save you Tag.
notion image
 

Step 4: Preview and Publish your Container

As always, make sure to Preview and Debug your Google Tag Manager Container and don’t forget to Publish it if everything is working as expected.