How to Track Conversions on Your Website using Google Tag Manager
Google Tag Manager (GTM) is one of the easiest ways to track user actions on your website. It’s simple to set up, no coding is involved (after you’ve installed the GTM code), and it helps you test and troubleshoot your tracking.
This article will include simple steps on how to track a form submission conversion on a basic website with a contact form.
Step 1
- Create a Google Tag Manager account and install the code on your site.
- Go to https://www.google.com/analytics/tag-manager/
- It’s best to use the Google account that you use for all of your Google Products like Gmail, Analytics, Adwords, etc.
- Follow the steps to set up an account and container and install the GTM code on your website. For more details on this, go here.
- After this step, no further website coding is required!
Step 2
- Create a Google Analytics account by visiting https://www.google.com/analytics/.
- Use the same Google account login you used for GTM
- Follow the steps to set up a Google Analytics account, property and view for your website. For more details on this, go here.
Step 3
Now you’re ready for the good stuff.
The steps below outline how to create a Google Analytics (GA) tag within GTM. This is how you will install GA on your website. Now that you have GTM installed on your website, you don’t need to install the code directly onto your site, you will install it via GTM, no coding involved!
- Go to Workspace > Tags > New > Tag Type: Universal Analytics
- Keep track type as “Page View”
- In the Google Analytics Setting dropdown, select “New Variable”
- Add your Google Analytics tracking ID to the field, and name the variable “Google Analytics Settings”
- Save
- Add a trigger by clicking on “Triggering” > All Pages
- Save
- Name the Tag “Universal Analytics”
- Now you can see the Tag you just created in your Tags tab
- In the top right corner click “Submit” > “Publish” to push these changes to your live website.
Pro Tip: It’s very easy to forget to push changes live, so always remember to check that you’ve submitted your changes after you’ve made your modifications within the account and before you exit out of GTM
Step 4
- Create a tag and trigger to configure form submission conversion tracking
- The tag will send the information about the action to Google Analytics, and the trigger will tell the tag when to send that information
- Go to Workspace > Tags > New > Tag Type: Universal Analytics
- Choose track type: “Event”
- You can fill the category, action, label, and value fields with whatever names that you want to use. I like to use a very basic “Form Submission” for the event category. Then, I like to utilize the built-in variables to specify the event action.
- Beside the action field, click on the folder icon to bring up built-in variables. Choose the “Page URL” variable. This will populate the event action with the page URL where the action occurred. This is useful if you have more than one form on your website to see which page the user submitted the form on.
- In the Google Analytics settings dropdown, choose the variable that you created in Step 3 “Google Analytics settings”
- Now to create a trigger
- Choose triggering > click the plus (+) icon in the corner to create a new trigger
- Click Trigger configuration
- Click Form Submission to use the built-in trigger type
- Save
- Name your trigger “Form Submissions”
- This trigger will now activate upon a form submission on any page of your website.
- A quick tip to keep in mind: This broad trigger also activates on search box submissions on your site. To make the trigger more specific, you’ll need to find the ID of the form(s) that you want to track, and click “Some forms” while creating your form submission trigger, choose “Form ID” > “equals” > “your form ID”.
- Now save your tag and name it something like “GA – Form Submission Event Tracking”
Step 5
- Preview your tags and triggers to make sure that they work
- In GTM, click “Preview” in the top right corner. You are now in preview mode, which will give you a debugging window on your website to see if everything works right
- Go to your website homepage. You will see a GTM preview window at the bottom of your screen
- Ensure that your “Universal Analytics” tag has triggered. It should be triggered on all pages, remember?
- Now navigate to a page with your contact form on it and send a test message. Once you’ve sent your message, pay attention to the GTM preview window, is the “GA – Form Submission Event Tracking” triggered after you submit the form? If not, you’ll have to go back to Step 4 and ensure everything is set up correctly. If it works, congrats! You’ve successfully set up conversion tracking in GTM.
- Don’t forget to submit your changes again. In the top right corner of GTM, click “Submit” > “Publish” to push these changes to your live website.
Step 6
- The final step is to see these events in Google Analytics, and track them as goals. This is how you put your tracking to work.
- Within your Google Analytics account and click on Admin > Goals > New Goal
- Choose “Custom” > Name the goal “Form Submissions” > Choose Event type
- Now you will enter the Category that you specified while setting up your Form Submission tag in GTM.
- Pro tip: Remember how you entered the PageURL variable into the action field when setting up your tag in GTM? If you have multiple forms on your site, enter in the page URL in the action field when setting up your goal (the full page URL, ie. http://www.example.com/contact-us) in order to track conversions from a specific page. Then create more goals using the different page URLs in the event action fields.
- If you don’t have multiple forms, you can leave the action field empty
- Save
- Now test it!
- Go to the Real-Time > Conversions tab in Google Analytics, submit another test form submission on your site, and if everything is working properly, you should see a “Form Submission” conversion come through!
Conclusion
Conversion tracking is highly recommended on every site, even if it’s a relatively simple setup like tracking form submissions on a contact page
It is beneficial to know exactly how many people are converting and where they are coming from to understand how your audience is interacting with your business online
It’s also a great way to track your marketing efforts, whether through Google Adwords, Adwords Express, Facebook, Twitter, LinkedIn, or any other platform. You will be able to see what referral sources are bringing in the leads and adjust your marketing accordingly
Even if you don’t do any paid marketing, it’s helpful to know if your Facebook or Instagram posts are driving leads, or maybe a partner website or directory that you’re listed in is driving leads. All these great insights can help you drive more leads and help grow your business.
4X Your Law Firm's Profits
(Using This Proven 3-Step Process)
Learn how we helped one lawyer...
- Outrank his competition and get to #1 on Google.
- Generate 50+ 5/5 star reviews.
- Open 400% more case files in just 6 months.
Calin Yablonski
Calin is the Managing Director and lead strategist at JurisPage.
Since 2009, he has been working with law firms to design websites and develop comprehensive Search Engine Optimization (SEO) and Google Adwords Marketing campaigns. Want to discuss your law firm's digital marketing strategy? Ask a question or schedule a free 30-minute consultation today.
Related Posts
March 29, 2021
Law Firm Microsites
December 14, 2020
LinkedIn Marketing for Lawyers: 11 LinkedIn Strategies for Lawyers
July 20, 2020
Best Live Chat for Lawyers: 13 Apps Reviewed
May 15, 2020
How to Host a Webinar for Your Law Firm
March 29, 2020
Law Firm SEO: 19 Actionable SEO Techniques To Dominate Google
In this article, I will share 19…
October 17, 2019
Law Firm Awards: Is Paying for an Award Worth it?
September 15, 2019
Law Firm Blogs (Blawgs): 17 Strategies for Getting More Traffic
August 11, 2019
Google AdWords For Lawyers: 17 Tips To Skyrocket Your Performance
Most firms know the importance of…
July 31, 2019
Best 50+ Law Firm Logo Designs
April 23, 2019
Accelerated Mobile Pages (AMP) For Law Firm Websites
April 22, 2019
Best 15 Law Firm Practice Management Software
February 3, 2019
13 Techniques for Creating Legal Content Google Will Love
Learn 13 techniques to generate higher…
January 15, 2019
How to Seamlessly Transition to JurisPage
December 11, 2018
Law Firm Sales Process: 10 Tips to Convert More Prospects Into Customers
In this article, we will cover 10 tips…
November 23, 2018
How to Leave FindLaw – Escape Their Clutches & Gain Your Freedom
In this article, I'll show you exactly…
November 15, 2018
7 Tips for Choosing the Best Marketing Agency for Your Law Firm
In this article, we cover the tips you…
October 10, 2018
10 Strategies to Rank for “Best” & "Top" Keywords in Google
“Best law firm in Chicago”, “top family…
April 16, 2018
The BIG Reason Why WordPress Is The Undisputed Champion
With over 15 million websites (29…
April 16, 2018
10 Big Reasons Why Your Law Firm Website Should Use WordPress
You have many choices for almost every…
October 7, 2016
10 Ways to Differentiate Your Law Firm (With Examples)
The days are long gone when simply…
January 4, 2016
How to Attract, Sell and Wow Your Law Firm’s Clients
Do you sometimes wonder how many leads…
December 15, 2015
6 Strategies to Reduce Your Law Firm’s Cost Per Click in Adwords
Ask any search marketing consultant and…
December 14, 2015
5 Digital Marketing Predictions for Law Firms in 2016
As the year slowly draws to a close, I…