Add your Google Analytics tracking code to your Thryv account and monitor your client's actions on your Client Portal forms and scheduler.
Use your Google Analytics account to learn:
- How many clients started or completed a specific call to action on your Client Portal like scheduling a meeting, share document, send a message or make payment.
- How many clients visited your Thryv Public Profile page and the Client Portal
- See the source URL of each completed request and gain insight of which campaigns drive your clients to take actions
All this information will be displayed on your Google Analytics account.
You can also measure the success of your advertising campaigns by adding Google Adwords, Facebook or other conversion code.
The conversion code will be called every time a Client Portal call to action was completed
How to add tracking to your Thryv account:
1. Add Google Analytics tracking ID to your Thryv account:
Login to your account and choose Settings > Conversion Tracking
Under Tracking ID paste your Google Analytics account ID
click here to learn where you can find you Google Analytics account ID
2. Add Thryv cross-domain code to your website to track the source of the lead
In order to view and track your clients’ actions and their source in Google Analytics, you should add the following code to your website, right after the existing Google Analytics code:
Note: Please add the code below directly on your website, (it is not recommended to use Google Tag Manager).
// Gets the client ID and let Client Portal know about it
<script>
ga(function(tracker) {
var clientId = tracker.get('clientId');
var timestamp = new Date().getTime()
var setClientIdUrl = 'https://www.thryv.com/widgets/tracking/YOUR-THRYV-ACCOUNT-NICKNAME/set_client_id?client_id=' + clientId + '×tamp=' + timestamp;
var ifrm = document.createElement("iframe");
ifrm.setAttribute("src", setClientIdUrl);
ifrm.setAttribute("style", "width:1px;height:1px;position:fixed;bottom:-1px;left:-1px;display:none;");
document.body.appendChild(ifrm);
});
</script>
- To retrieve your Thryv account nickname navigate to Client Portal and in the upper right, you'll find the path for your Client Portal page. Your account nickname is the code at the end of https://live.thryv.com/site/YOUR-THRYV-ACCOUNT-NICKNAME
NOTE: If you have customized your URL, that will be the nickname.
View the results in Google Analytics
Tracking:
- On your Google Analytics account, on the left navigation bar select Behavior > Events >Top Events
The events below will be reported under the “Client Portal” category:
- appointment-start
- appointment-completed
- payment-form-start
- payment-form-completed
- leave-details-start
- leave-details-completed
- contact-form-completed
- document-start
- document-completed
- profile-page
- clients-portal
In Google Analytics, you can set specific Goals ad see the goal completion for any audience
- Login to your Google Analytics account
- Navigate to Admin>Goals> New Goal > Choose type - Event
Set event parameters to match any completed action -
Set Category as 'Client Portal'
-
Set Action as “Regular Expression” = .*completed
-
Alternatively you can select a specific action completed or started from the Client Portal call to action list above
- Make sure you verify the goal
- Note that goals do not work for group events.
How to add conversion code to your Thryv account.
Whether you are using Google AdWords, Facebook or any other service to detect conversion, you can easily add any conversion code to your Thryv account and learn about the effectiveness of your marketing campaigns.
To add Conversion Code to your Thryv account (AdWords, Facebook's pixel tracking etc.)
Login to your account and choose Settings > Conversion Tracking
Paste your conversion code in the Conversion Code (HTML) box.
click here to learn where you can find you Google AdWord tracking code
click here to learn where to find Facebook Pixel Tracking code
You can also set up conditional conversion, based on specific services or events.
The following code is an example of how to measure conversion for specific services set up in Thryv,
<!-- Google Code for Purchase Conversion Page -->
<script type="text/javascript">
/* <![CDATA[ */
var google_conversion_id = DEFAULT_CONVERSION_ID;
var google_conversion_label = DEFAULT_CONVERSION_LABEL;
var conversion_type = "%type%";
var name = "%name%";
if (name == "Service 1 name") {
google_conversion_id = CONVERSION_1_ID;
google_conversion_label = "CONVERSION_1_LABEL";
} else if (name == "Service 2 name") {
google_conversion_id = CONVERSION_2_ID;
google_conversion_label = "CONVERSION_2_LABEL";
}
var google_conversion_language = "en_US";
var google_conversion_format = "1";
var google_conversion_color = "666666";
if ("%price%" != "") {
var google_conversion_value = %price%;
}
/* ]]> */
</script>
<script type="text/javascript" src="//www.googleadservices.com/pagead/conversion.js"></script>
The Service 1 name in the code above, should be copied from your Thryv account. This is the name of the service you have set up in your Thryv account under Settings>Services.
The CONVERSION_1_ID & CONVERSION_1_LABEL should be generated and copied from AdWords.
You can add as many conversion codes as you'd like, and from any conversion tracking system (AdWords, Facebook etc).
Comments
0 comments