New
Are you ready for Agentforce? Take our assessment to find out today!
    • Expertise
          • Product

          • Sales Cloud
          • Service Cloud
          • Account Engagement
          • Marketing Cloud Next
          • Revenue Cloud
          • Agentforce
          • Data 360 (Data Cloud)
          • CRM Analytics
          • Tableau Next
          • Experience Cloud
          • Industry

          • Manufacturing
          • Healthcare
          • High Tech
          • Financial Services
          • Media & Entertainment
    • Solutions
      • Consulting
      • Implementation
      • Managed Services
      • Health Check
      • Training
    • About Nebula
      • We Are Nebula
      • Meet the Team
      • Join Our Team
    • Resources
    • Login
    • Get in Touch
Share:

How to Integrate Google Analytics with Account Engagement Forms

by Sarah Kelleher
17th January 2019 • 7 min read
Sarah Kelleher
Share:

Account Engagement

Google Analytics Conversion tracking and Google Tag Manager setup is fast becoming one of our top requests from customers. At first look, it is punishingly complicated with very little help available from either Account Engagement or Google. However, once you break the process down it is actually fairly straightforward.

Follow our step-by-step guide below to get your forms set up:

NOTE: This guide is written for organisations using Google Tag Manager in conjunction with Universal Analytics. If your setup looks different to the screenshots below, get in touch and we can help you get set up.

Add Google Tracking to your Account Engagement Layout Template

In order for Account Engagement to send tracking data to Google Analytics, you need to add your Google Tag Manager container to your Account Engagement Layout Template. If you are already tracking Account Engagement pages in Google Analytics, this container may already be in place and won’t need to be added again.

To add the container:

  1. Log in to Google Tag Manager and select your account
  2. Click on your Container ID in the top right – this will be a string of letters and numbers
  3. Copy the first code and paste it into the <head> section of your Account Engagement Layout Template
  4. Copy the second code and paste it right after the <body> tag of your Account Engagement Layout Template
  5. Save your Layout Template

Adding Google Tag Manager Container to Form Layout Template

Add an ‘id’ to your Account Engagement Thank You Content

In order to work out how many people have submitted your form in Google Analytics, you need some way of identifying submission. This can be done by sending Prospects to a dedicated ‘Thank You’ page and then reporting on how many people reach that Thank You page URL.

However, if you are using Thank You Content, the URL of the page doesn’t change when the form is submitted. So you need a way of alerting Google Analytics that the form has been submitted. To do this, you will create a virtual (fake) page view triggered by Google Tag Manager. The first step is to add a unique marker into the Account Engagement Form that Google Tag Manager can look out for:

  1. Navigate to your Account Engagement form and access the ‘Completion Actions’ section
  2. Access the Source of the Thank You Content
  3. Add an empty <div> (or any other element) with a unique id(such as id=”thank-you”). For example, <div id=”thank-you”>&nbsp;</div>
  4. Save your form

Adding id element to Pardot Form Thank You Content

Create a Google Tag Manager trigger

Now that there is a unique flag in your Thank You content, you need to tell Google Tag Manager to look out for this flag, by creating a trigger.

  1. Navigate to Google Tag Manager and select ‘Triggers’ from the left-hand menu
  2. Click ‘New’ and select ‘Element Visibility’ under Trigger Type
  3. Select ‘Selection Method’ as ID and enter the id you used in your Account Engagement Form
  4. Optionally, change any other settings on the page but for basic set-up, these aren’t required

Setting up Google Tag Manager Trigger

Create Google Tag Manager tag

When the Google Tag Manager tag is fired by seeing the ‘id’ in the Account Engagement Form Thank You Content, it will then need to create a virtual page view in Google Analytics. To do this, you will need to create a new Tag:

  1. Navigate to Google Tag Manager and select ‘Tags’ from the left-hand menu
  2. Click ‘New’ and then click into ‘Tag Configuration’
  3. Select ‘Google Analytics – Universal Analytics’ for the tag type
  4. Set the ‘Track Type’ as Page View
  5. Tick ‘Enable overriding settings in this tag’
  6. Select an existing Google Analytics setting variable if you already have this configured. Alternatively, copy your Google Analytics tracking ID into the ‘Tracking ID’ box. You can find your tracking ID by navigating to Admin > Property Settings in your Google Analytics account.
  7. Expand more settings and add two ‘Fields to set’
    1. page – this is what will appear in the URL report in Google Analytics (e.g. ‘contact-thank-you’)
    2. title – this is what will appear in the Title report in Google Analytics (e.g. Contact Us Thank You)
  8. Save the Tag Configuration
  9. Click into the ‘Triggering’ section and select the Trigger that you made earlier

Configure Tag in Google Tag Manager

Add Trigger to Tag in Google Tag Manager

Set up your Goal in Google Analytics

By now, your form submissions should be showing up in Google Analytics as Page Views. Don’t panic if you can’t see them in the standard ‘Content’ report as this has a bit of a lag. Check in the Real-Time section to see your Page Views as they are triggered from Google Tag Manager:

View Thank You Page in Real Time Google Analytics

In order to track them as a Conversion, you will need to create a Goal that listens out for your Thank You page views. To do this:

  1. Navigate to Google Analytics and select Admin, then Goals from the right-hand column
  2. Click ‘New Goal’
  3. Under Goal set-up, select ‘Custom’ and click Next
  4. Give your Goal a name and select the Goal Type as ‘Destination’
  5. Under Goal details, enter your Destination as the ‘page’ value you set up in the Tag (e.g. ‘contact-thank-you’)
  6. Save your Goal

Setting up Goals in Google Analytics

As with Page Views, your Goals report will take 24-48 hours to show any conversions. To see conversions as they come in, go to the Real-Time section and select ‘Conversions’. You should now see your form submissions pop up in real time!

Viewing Real Time Conversions in Google Analytics

Troubleshooting

If your Goals are not appearing, it can be hard to work out where the process is failing. To help with this, use Google Tag Managers Preview and Debug mode. In Google Tag Manager, click the grey ‘Preview’ button in the top left. When you now load your Account Engagement form, the Debug console will show you which triggers (if any) are being fired by the page.

Google Tag Manager Debug Console

  • If you tags are not firing, the issue is either with the code in your Account Engagement Layout Template or the Trigger in Google Tag Manager.
  • If the tags are firing, but you are not seeing the Page Views in Google Analytics, check the Tag in Google Tag Manager is creating the Page View correctly.
  • If the Page Views are appearing in Google Analytics, but the Conversion is not there, the issue is with your Goal setup in Google Analytics.

Tracking Multiple Forms

The method described above will track each form you set up individually. However, if you are tracking conversions on multiple Account Engagement forms, you can combine some of these steps to make the process simpler.

To do this, you can add the ‘id’ element which Google Tag Manager is looking for in the Form section of the Layout Template. Then this ‘id’ will be present in every Account Engagement Form using this Layout Template and means that users will not have to remember to add it in the Source section every time a new Form is created.Adding Google Tag Manager ID to Pardot Form Layout Template

In order to distinguish exactly which Form has been completed in Google Analytics, you can filter the Triggers in Google Tag Manager to only fire when they see the thank you id on pages with a certain URL.

For example, you may have three event forms all using the same Layout Template. All of these will include the generic ‘thank-you’ id in the Thank You Content. In Google Tag Manager, you can create three different triggers that all look for the same id, but only fire when the form is placed on the page URL for that specific event. To do this, select ‘This triggers fires on Some Visibility Events’ in the Trigger setup and then specify the Page URL that the form will be placed on.

Setup Trigger Filters in Google Tag Manager

***

Hopefully, you are now successfully tracking all your form submissions in Google Analytics and proving the impact of inbound marketing for your business. If you need any help getting started or want to dive deeper into the world of analytics, get in touch with our experts and see how we can help

 

Note – this article has been updated to reflect Pardot’s name change to Account Engagement.

Sarah Kelleher

Sarah Kelleher

Chief Executive Officer

Sarah is the CEO of Nebula Consulting, a Salesforce Marketing Champion, and a regular speaker at tech community events. With over 10 years in the Salesforce consulting ecosystem, she holds 10 certifications and has delivered hundreds of successful customer projects. Sarah brings deep expertise in B2B customer journeys, strategy design, and business analysis, and is a proud advocate for women in technology.

More from Sarah

Find related resources by topic

Marketing

You may also be interested in

Fix the Foundations: Success in the Agentic Era Marketing Edition
Blog
Marketing

Fix the Foundations: Success in the Agentic Era Marketing Edition

We hear the announcements and on repeat about how the Agentic Era is here to transform the B2B and B2C landscapes. These changes will enable…

4 min read Read Blog
Laying the Right Foundations
Success Story
Account Engagement Sales Cloud

Laying the Right Foundations

Complex processes and cautious stakeholders hindered Redwheel's CRM adoption. Nebula's Account Engagement and Salesforce audits mapped the journey, restoring confidence and delivering a strategic roadmap for a powerful, sales-enabled CRM.

May 27, 2025 Read Customer Story
How to Avoid Completion Action Limits in Account Engagement (Pardot) Using Engagement Studio
Blog
Marketing

How to Avoid Completion Action Limits in Account Engagement (Pardot) Using Engagement Studio

Conditional completion actions and completion actions, while powerful, can quickly consume the available limits on your forms and form handlers. If you’ve been creating and managing…

3 min read Read Blog
Aligning Marketing and Sales for a Global Insurer
Success Story
Account Engagement Sales Cloud

Aligning Marketing and Sales for a Global Insurer

Poor email deliverability and disconnected data misaligned Lockton's sales and marketing. Nebula's Salesforce and Account Engagement integration established governance, delivering a 97% delivery rate, 25 empowered users, and transparent insights.

Apr 30, 2025 Read Customer Story
Upgrade Your Form UX with Toggle Switches
Blog
Marketing

Upgrade Your Form UX with Toggle Switches

If you would like to modernise your forms, provide a slicker user experience, and match contemporary web design, follow our mini guide that helps you…

2 min read Read Blog
Creating a seamless membership experience
Success Story
Account Engagement Sales Cloud Service Cloud

Creating a seamless membership experience

Data silos and disparate systems hindered the World Travel and Tourism Council's membership experience. Nebula's Cvent integration, record cleansing and automated invoicing delivered rapid efficiency, unified data, and a 10-year partnership.

Jan 30, 2025 Read Customer Story
Account Engagement Landing Page Conversion Mastery
Blog
Marketing

Account Engagement Landing Page Conversion Mastery

Building pages that truly perform in Account Engagement isn't just about clicking buttons; it's about strategy, technical finesse, and empathy for the user. Here’s my…

5 min read Read Blog
Targeted Sales Enablement for Users
Success Story
Account Engagement CRM Analytics Sales Cloud

Targeted Sales Enablement for Users

Stale opportunities and missing data delayed Clarion Events' pipeline. Nebula's Einstein Next Best Action delivered intuitive guidance, surging stage moves by 132%, doubling activities, capturing crucial VAT details, and boosting CRM adoption.

Jan 3, 2025 Read Customer Story
5 Hidden Snags in Account Engagement
Blog
Marketing

5 Hidden Snags in Account Engagement

Managing Salesforce Account Engagement (Pardot) requires more than just marketing knowledge. Even in a well-established org, you can sometimes hit some invisible walls. Below are…

4 min read Read Blog
5 new Marketing Cloud Next features we’re excited to try
Blog
Marketing

5 new Marketing Cloud Next features we’re excited to try

The Spring ’26 release is here, and it’s a significant milestone for Marketing Cloud Next (also known as Agentforce Marketing). This release focuses on making…

4 min read Read Blog
Nebula

Our journey started in 2012 with a clear vision and core values. Nebula is dedicated to empowering our customers through fostering relationships founded on collaboration, flexibility, and trust.

  • We Are Nebula
  • Resources
  • Join Our Team
  • Terms and Conditions
  • Privacy Policy
The Space Aldgate,
Irongate House,
22-30 Dukes Place,
London EC3A 7LP
+44 207 112 8026
Get in Touch
Copyright © 2026 Nebula Consulting. All Rights Reserved.