How do I hook up chat to Google Analytics or Google Tag Manager?

If you have a plug-in on your site Google Analytics or Google Tag Manager you can associate it with Thulium chat configured on the site.

You will need to add the following JavaScript code that will send information to Google Analytics every time you start a chat conversation with a customer:

  _tc('event_listener', function(event) {
    if ( === 'conversation_created') {
      var trackerName = ga.getAll()[0].get('name');
      ga(trackerName + '.send', 'event', { eventCategory: 'chat', eventAction: 'conversation_created', eventLabel: window.location.href});

Ideally, you should pass the code to the technical person who looks after your website.

Was this information helpful?


My name is Łukasz and I take care of Thulium's knowledge base. I'd love to keep it accurate and understandable. If you have any remarks or suggestions for improvement - let me read them.

Drop me a line at: