mirror of
https://github.com/qdrant/landing_page.git
synced 2026-09-25 22:18:30 +02:00
removed sendFeedback function and it's call because we need to do it from GTM ui, not programmatically (#550)
This commit is contained in:
@@ -83,7 +83,6 @@ keywords = "search engine, vector database, neural network, matching, filter, Sa
|
||||
|
||||
[params.feedback]
|
||||
enable = true
|
||||
max_value = 100
|
||||
title = "Feedback"
|
||||
question = "Was this page helpful?"
|
||||
positive = "Yes"
|
||||
|
||||
@@ -23,24 +23,13 @@
|
||||
yesButton.disabled = true;
|
||||
noButton.disabled = true;
|
||||
};
|
||||
const sendFeedback = (value) => {
|
||||
if (typeof gtag !== 'function') return;
|
||||
gtag('event', 'page_helpful', {
|
||||
'event_category': 'Helpful',
|
||||
'event_label': window.location.pathname,
|
||||
'value': value
|
||||
});
|
||||
};
|
||||
yesButton.addEventListener('click', () => {
|
||||
yesResponse.classList.add('feedback__response_visible');
|
||||
disableButtons();
|
||||
{{ $maxValue := .Site.Params.feedback.max_value | default 100 -}}
|
||||
sendFeedback({{ $maxValue }});
|
||||
});
|
||||
noButton.addEventListener('click', () => {
|
||||
noResponse.classList.add('feedback__response_visible');
|
||||
disableButtons();
|
||||
sendFeedback(0);
|
||||
});
|
||||
</script>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user