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(){