Skip to content

Commit 7fe5844

Browse files
author
Pat Mellon
committed
Update tracking for 'Was this Helpful?'
1 parent e8055d7 commit 7fe5844

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

_templates/layout.html

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,10 @@
6767
eventAction: 'click',
6868
eventLabel: $(this).attr("data-response")
6969
});
70+
gtag('event', $(this).attr("data-response"), {
71+
'event_category': 'Was this Helpful?',
72+
'event_label': $("h1").first().text()
73+
});
7074
});
7175

7276
if (location.pathname == "/") {

0 commit comments

Comments
 (0)