From f1676f8c123a26b0ee2c0e382baf167ef0b2fd7b Mon Sep 17 00:00:00 2001 From: Yang Shi Date: Wed, 1 Jul 2020 11:13:56 -0700 Subject: [PATCH] add event value field --- docs/python_docs/_static/feedback.js | 1 + docs/static_site/src/assets/js/feedback.js | 1 + 2 files changed, 2 insertions(+) diff --git a/docs/python_docs/_static/feedback.js b/docs/python_docs/_static/feedback.js index 9bf211df4f7c..f45423765b74 100644 --- a/docs/python_docs/_static/feedback.js +++ b/docs/python_docs/_static/feedback.js @@ -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 }); }); }); diff --git a/docs/static_site/src/assets/js/feedback.js b/docs/static_site/src/assets/js/feedback.js index 9bf211df4f7c..f45423765b74 100644 --- a/docs/static_site/src/assets/js/feedback.js +++ b/docs/static_site/src/assets/js/feedback.js @@ -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 }); }); });