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

Commit

Permalink
add event value field
Browse files Browse the repository at this point in the history
  • Loading branch information
ys2843 committed Jul 1, 2020
1 parent d43920e commit f1676f8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions docs/python_docs/_static/feedback.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ $(document).ready(function() {
eventCategory: "Did this page help you?",
eventAction: $(this).attr("data-response"),
eventLabel: window.location.pathname || "unknown",
eventValue: $(this).attr("data-response") === "yes" ? 1 : 0
});
});
});
1 change: 1 addition & 0 deletions docs/static_site/src/assets/js/feedback.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ $(document).ready(function() {
eventCategory: "Did this page help you?",
eventAction: $(this).attr("data-response"),
eventLabel: window.location.pathname || "unknown",
eventValue: $(this).attr("data-response") === "yes" ? 1 : 0
});
});
});

0 comments on commit f1676f8

Please sign in to comment.