From 01dd1cc1766b090c82c4fc2e32d634914edb82f3 Mon Sep 17 00:00:00 2001 From: Pat Mellon Date: Fri, 9 Oct 2020 09:44:00 -0400 Subject: [PATCH] Update event tracking --- _templates/layout.html | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/_templates/layout.html b/_templates/layout.html index 743bee300fc..ee2aa0e547d 100644 --- a/_templates/layout.html +++ b/_templates/layout.html @@ -51,6 +51,11 @@ eventAction: 'click', eventLabel: $(this).attr("data-response") }); + gtag('event', 'click', { + 'event_category': $(this).attr("data-response"), + 'event_label': $("h1").first().text(), + 'tutorial_link': window.location.href + }); }); $("[data-behavior='was-this-helpful-event']").on('click', function(){