How to Set Up a Thank You Page to Track Goals in Google Analytics
You may have already taken a glance at Google Analytics to check how your visitor count is doing, how many pages people are looking at when then visit your site, and how long they spend on your site.
These are excellent metrics to keep track of, but ultimately you want to keep track of whether or not your website is leading people to contact you. And if it is, WHERE are they coming from?
Unfortunately, the default settings for most contact forms do not allow you to easily track whether or not someone has submitted a contact form, but with a few tweaks you can be measuring these conversions in no time!
This is one of our more technical posts, but fear-not, therapists! We know you can tackle this (And if you wanted to sign up for a Brighter Vision website, we would do this for you under the umbrella of our Unlimited Technical Support).
How to Add Google Analytics to Your Therapy Website
The Google Analytics tracking code you’ll use to start tracking information on your website is the string of numbers that starts with UA.
This is the code that first appeared on your screen when you finished setting up your Google Analytics account, but you can find it any time by going to Admin (on the top bar of your Google Analytics page), then .js Tracking Info, and then clicking on Tracking Code.
You’ll see a tracking script code in a box in the center of the page which you can copy and paste just before the </head> tag in the header.php file of your website.
But if you don’t know what that means and you don’t want to deal with HTML coding (we don’t blame you), here’s a more simple solution:
Install and activate the Google Analytics plugin. Then find it under Settings > Google Analytics in your dashboard sidebar. You will see a field to enter your Google Analytics Tracking ID. Paste the Tracking ID (including UA) here, save changes, and you’re all set!
Note: It will take a bit for Google Analytics to start collecting data for your website, so do not panic if you don’t see anything in Google Analytics right away.
Adding a Goal in Google Analytics
A “goal” in Google Analytics is an excellent way to track how your website is actually functioning in terms of pushing people toward your business. It’s great to have an informational page that people can read to learn about you and your services, but ultimately you want visitors to contact you to book a session. We’ll use setting up a goal as a completed contact form as an example.
1. Create a Thank You Page The default setting for a contact form is to show a quick message on the page after a contact form has been submitted on your site. Unfortunately, this is difficult for Google to track as an “event” so that you can track your goal. A great solution to this is to create a Thank You page that displays after a contact form submission. Then, each time someone arrives at that page, Google can count it as a contact form submission.
Add a new page specifically for this purpose with a message of “Thank you for contacting us, we will respond shortly” (or something similar). It is also a good idea to place additional links on this page to social media or relevant FAQ and resource pages to further direct visitors to useful information.
2. Creating a Redirect for Gravity Forms Users
At Brighter Vision, we recommend Gravity Forms for all types of contact forms for our clients’ websites.
Once you install the Gravity Forms plugin, you’ll need to do the following:
- Go to Forms in the sidebar
- Click “Forms,” edit the form you wish to track
- Go to Form Settings, and then select the Confirmations menu.
The default confirmation in Gravity Forms is Confirmation Message Text, which simply displays text on the same page after a client has submitted a contact form informing them that their message was sent successfully.
But for tracking a goal, we want them to be redirected to a Thank You page that we can track in Analytics.
To do this, either edit your Confirmation Type to be “Page” (this means the visitor will be redirected to this page once they have completed the form) and select the Thank You page from the drop down menu that you just created.
2. Creating a Redirect for Contact 7 Form Users
With Brighter Vision, we install and set up Gravity Forms for all our clients. But if you’re not a Brighter Vision client (**frown**), and want to use a free solution, Contact 7 is a great option!
Here is how to create a redirect for Contact 7:
Go to “Contact” in your sidebar and click edit for the form you wish to redirect.
Scroll all the way to the bottom of the page and in the additional settings box, add the following code:
on_sent_ok: “location.replace(‘http://yourthankyoupageaddress.com‘);” replacing yourthankyoupageaddress.com with your actual thank you page URL (include the http).
Be sure that you are including every piece of that text in bold, including the quotation marks, semicolon, and apostrophe quotes around the website address.
3. Add the Goal to Google Analytics
Back in Google Analytics, navigate to…
- Admin in the top menu bar
- Goals
- Click Add a New Goal
Once you’ve clicked “Add New Goal,” name your goal whatever you would like (“contact form,” “thank you page,” “inquiry,” etc.), leave the Goal ID to whatever is automatically filled, and select Type as “Destination.” Then click, “Next step.”
Finally, select destination as “Equals to” and add the last part of your website address for the Thank You page you have created.
For example: With Brighter Vision, our thank you page is https://www.brightervision.com/thank-you/. Because we already have brightervision.com setup as the website for this Google Analytics account, it is already a given that brighervision.com is the first part of that page, so all we have to do is fill in /thank-you/
Click “Create Goal” and you’re all set!
Now you can track your goals in the “Conversions” tab in Google Analytics!
As always, if you are a Brighter Vision client, simply send us a support ticket and we can get this set up for you with no hassle. If you’re not a Brighter Vision client, send us a message through our contact form (we’ll see you on Google Analytics **wink**) and we’ll tell you how we can help you grow your therapy practice through a new website!
Hi Caitlin,
Reading about this made me wonder if my site is set up for this, and if so, how do I access the information?
Thanks!
Hi Donald,
By default, we do not set this up for our clients. But I will reach out momentarily to get this started for you 🙂
Hi Perry,
Really this is a very useful and great article to read. I got so many ideas regarding goal setting. Will definitely help me to set campaign for my upcoming clients.
Thanks.