Help and support

Resources that will teach you everything about LiveChat.

Google AdWords: tracking chat conversions

by Bartosz Olchówka

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 = 'http://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.

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.

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
Did you find this helpful? Yes No
Thanks for your feedback.
89% of people found this helpful.