Integration with google analytics

With the help of Google Analytics, you can track the performance of the online chat and your consultants.

To manage accounts on the left, click on “Live Chat”, then select your site. In the column that appears, click “Integration”. In the “Metrics and Analytics” tab, select the “Google Analytics” button.

STEP 1
First of all, you need to set up goals in Google Analytics. Add a goal, come up with a name and goal ID. Save the settings, how to do it is described here.

STEP 2
Now you need to place the Google Analytics code in the live chat event handler on your site.

EVENT ASSOCIATED WITH SENDING A MESSAGE TO THE OPERATOR:
<script>

Suo.Chat(“setCallback”, “clientSendMessage”, function(data){

ga(“send”, “event”, “online_chat”, “action”, “send_message”, 1);

});

</script>

CHAT OPENING EVENT:
<script>

Suo.Chat(“setCallback”, “openSupport”, function(data){

ga(“send”, “event”, “online_chat”, “action”, “open_support”, 1);

});

</script>

227

Other articles on this topic

Integration with Yandex.metrica

Using the Yandex.Metrica service, you can track the performance of the online chat and your…