« Integrations

Google AdWords: tracking chat conversions

Bartosz Olchowka
3 min read
updated: Jun 19, 2019

See which of your AdWords campaigns are the most successful and result in a chat. This integration will help you see which of your AdWords click convert to chats on site.

Installation

To start tracking conversion to chats in your AdWords panel, you need to include the following code below LiveChat installation script on your website.

<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>
You can also track the conversion of your after-hours form. You need to simply 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.
You can also track the conversion of your after-hours form. You need to simply 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.

Remember to update YOUR_CONVERSION_ID and YOUR_CONVERSION_LABEL with the appropriate values.

You can track several conversions at a time using this script. To do that, add a separate script with different pairs of google_conversion_id and google_conversion_label variables for each conversion you want to track.

google_conversion_id stays the same, google_conversion_label varies for different conversions.

You can track several conversions at a time using this script. To do that, add a separate script with different pairs of google_conversion_id and google_conversion_label variables for each conversion you want to track.

google_conversion_id stays the same, google_conversion_label varies for different conversions.

To get the conversionID and conversionLabel, follow these steps:

  1. Log in to your AdWords account, select Tools and choose Conversions from the drop-down list.

Accessing AdWords conversions

  1. Click on the + Conversion button.

Adding AdWords conversion

  1. Name the conversion, select Webpage as the conversion source and click on the Save and continue button.

Setting up a new AdWords conversion

  1. Change the conversion settings to your liking and select Save and continue. Set Don’t assign a value as the conversion value. All these settings can be changed later on.

Finalizing AdWords conversion settings

  1. Select I make changes to the code to get the conversion code. Copy the google_conversion_id and google_conversion_label and select Done.

Getting the google_conversion_id and google_conversion_label

  1. Paste those two values in the AdWords integration script and add it to your page to finish the setup.

After you install the code, chat conversion from clicks will start appearing in your AdWords conversion reports.

LiveChat conversions recorded in Google AdWords

Google Tag Assistant

When using Google Tag Assistant, you may encounter some syntax errors like **Conversion label not set** or **No HTTP response detected**. And what actually does they mean?

Syntax errors visible in Google Tag Assistant

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 version, Google Tag Assistant may display errors like the ones stated on the screenshot above.

Don’t worry though! The integration will successfully track your AdWords campaign and integrate it with LiveChat.
Don’t worry though! The integration will successfully track your AdWords campaign and integrate it with LiveChat.

Hopefully, you have found this article helpful but if you have any additional questions or doubts, feel free to start a chat with us - we are available 24/7/365!

Was this article helpful?

Got it!

Thanks for your feedback.

Thank you!

We’re happy to help.

Start using LiveChat now!

Free 14-day trial · Team plan features · No credit card required

Still not convinced? See what else we have to offer