Skip to content
This repository has been archived by the owner on Oct 27, 2023. It is now read-only.

Commit

Permalink
Merge pull request pytorch#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 8d953e2 + eb6065f commit 1c40f42
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 1c40f42

Please sign in to comment.