[docs] mark submitting feedback as Metrika goal (#11046)

This commit is contained in:
Ivan Blinkov 2020-05-20 00:49:43 +03:00 committed by GitHub
parent 994884399c
commit 8eac46c79f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -157,6 +157,11 @@ $(document).ready(function () {
dataType: 'json',
data: JSON.stringify({rating: $(this).prevAll().length + 1}),
success: function () {
try {
window.yaCounter18343495.reachGoal('docs_feedback');
} catch (e) {
Sentry.captureException(e);
}
},
error: function () {
rating_stars.removeClass('text-orange');