Skip to content

Commit

Permalink
Merge pull request #845 from shiftlab/was-this-helpful-tracking
Browse files Browse the repository at this point in the history
Update 'Was this Helpful?' tracking
  • Loading branch information
brianjo authored Feb 12, 2020
2 parents e8055d7 + 7fe5844 commit 67d5f4f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions _templates/layout.html
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,10 @@
eventAction: 'click',
eventLabel: $(this).attr("data-response")
});
gtag('event', $(this).attr("data-response"), {
'event_category': 'Was this Helpful?',
'event_label': $("h1").first().text()
});
});

if (location.pathname == "/") {
Expand Down

0 comments on commit 67d5f4f

Please sign in to comment.