Get to know which of your Google Ads campaigns are best at converting to chats on your site. In this short tutorial, you’ll learn how to create a new conversion in Google Ads, and how to check if ad clicks result in new chats.
Installation tutorial
To track how your Google Ads convert to chats on your site, follow these steps:
1
Log in to your Ads account and go to Tools & Settings > Measurement > Conversions from the top menu.
2
To add a new conversion, click on the plus icon in the top left.
If this is the first time you create a conversion, you’ll see a different view—click on +Conversions and proceed to the next step.
3
Choose Website.
4
Select Other in the Category section.
5
Enter the name of the Conversion. Use one that’ll help you easily find it in the future.
6
Select Don’t use a value for this conversion action.
7
You can change all the other settings however it suits you. When you’re finished, click on create and continue. All the settings can be changed later on.
8
Choose Google Tag Manager.
9
Copy the Conversion ID and the Conversion label.
10
Now paste the Conversion ID and the Conversion label values into the script we created (you’ll find it below the instructions).
11
Once done, add the whole script to your site’s source code. Remember to place it below the LiveChat installation code.
Copy the script below and remember to change YOUR_CONVERSION_ID and YOUR_CONVERSION_LABEL to the values provided in the conversion you created in Google Ads (as shown in steps 8 and 9).
<script>
var LC_API = LC_API || {};
LC_API.on_chat_started = function()
{
// track this chat in Google AdWords
var google_conversion_id, google_conversion_label, img;
google_conversion_id = 'YOUR_CONVERSION_ID';
google_conversion_label = 'YOUR_CONVERSION_LABEL';
img = new Image(1, 1);
img.src = 'https://www.googleadservices.com/pagead/conversion/'+google_conversion_id+'/?label='+google_conversion_label+'&script=0';
};
</script>
After you’ve added the script to your website, the chat conversion from ad clicks will start appearing in your Ads conversion reports.
Additional information
Track conversions to the ticket from
Tickets mentioned in this article refer to the old LiveChat ticketing system available for new customers until June 1, 2023. If you’re using HelpDesk tickets or created a LiveChat account after June 1, 2023, unfortunately, you can’t benefit from this integration.
Tickets mentioned in this article refer to the old LiveChat ticketing system available for new customers until June 1, 2023. If you’re using HelpDesk tickets or created a LiveChat account after June 1, 2023, unfortunately, you can’t benefit from this integration.
You can also track conversions to ticket form. You need to replace the LC_API.on_chat_started = function() part of the code with LC_API.on_ticket_created = function(data). To learn more about this callback, check out our API documentation.
Track several conversions at the same time
You can track several conversions at a time using the script provided above. To do so, add a separate script with different pairs of google_conversion_id and google_conversion_label variables for each conversion you want to track.
The google_conversion_id stays the same, google_conversion_label varies for different conversions.
The google_conversion_id stays the same, google_conversion_label varies for different conversions.
Google Tag Assistant errors
When using Google Tag Assistant, you might come across some syntax errors like Conversion label not set or No HTTP response detected. Don’t worry about them, as the integration will successfully track your Ads campaign and integrate it with LiveChat.
When validating your AdWord campaign, Google Tag Assistant is looking for active conversion codes, including the version without JavaScript(noscript). As our conversion tracking code does not have such a version, Google Tag Assistant may display errors.
RELATED ARTICLES
Zapier: linking other services to LiveChat
Read a short tutorial with instructions on how to create a Zap in Zapier and integrate your LiveChat account with other apps.