From d99f598e02cb986d6528ac70cddf28d657291938 Mon Sep 17 00:00:00 2001 From: "opensearch-trigger-bot[bot]" <98922864+opensearch-trigger-bot[bot]@users.noreply.github.com> Date: Tue, 31 Oct 2023 15:31:44 -0400 Subject: [PATCH] Add forum page click to GA (#5458) (#5468) (cherry picked from commit b5ed6c7b1be0488736467133022a49604a8c0059) Signed-off-by: Fanit Kolchina Signed-off-by: kolchfa-aws <105444904+kolchfa-aws@users.noreply.github.com> Signed-off-by: github-actions[bot] Co-authored-by: github-actions[bot] --- _includes/feedback.html | 2 +- assets/js/listener.js | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/_includes/feedback.html b/_includes/feedback.html index bca9ed66b4..95ccfd116b 100644 --- a/_includes/feedback.html +++ b/_includes/feedback.html @@ -11,6 +11,6 @@
350 characters left
-

Have a question? Ask us on the OpenSearch forum.

+

Have a question? .

Want to contribute? or .

\ No newline at end of file diff --git a/assets/js/listener.js b/assets/js/listener.js index aba3a16abd..62d0afe2e8 100644 --- a/assets/js/listener.js +++ b/assets/js/listener.js @@ -15,6 +15,9 @@ document.addEventListener('click', function(event) { else if (target.matches('.feedback-edit')) { gtag('event', 'edit_page_click'); } + else if (target.matches('.feedback-forum')) { + gtag('event', 'forum_link_click'); + } else if (target.matches('.feedback-button')) { sendButton.disabled = false; }