Skip to content

Commit ded4e8d

Browse files
authored
Update event tracking (#1188)
1 parent 2751bf3 commit ded4e8d

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

_templates/layout.html

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,11 @@
5151
eventAction: 'click',
5252
eventLabel: $(this).attr("data-response")
5353
});
54+
gtag('event', 'click', {
55+
'event_category': $(this).attr("data-response"),
56+
'event_label': $("h1").first().text(),
57+
'tutorial_link': window.location.href
58+
});
5459
});
5560

5661
$("[data-behavior='was-this-helpful-event']").on('click', function(){

0 commit comments

Comments
 (0)