diff --git a/app/assets/javascripts/webchat.js.erb b/app/assets/javascripts/webchat.js.erb index 3df3a07a5..132f07c9d 100644 --- a/app/assets/javascripts/webchat.js.erb +++ b/app/assets/javascripts/webchat.js.erb @@ -51,6 +51,7 @@ if (message.evt === 'opened') { webchat.$banner.addClass('open'); webchat.$banner.attr('aria-hidden', false); + GOVUK.analytics.trackEvent('webchat', 'offered'); } else if (message.evt === 'closed') { webchat.$banner.removeClass('open'); webchat.$banner.attr('aria-hidden', true);