From b5ed6c7b1be0488736467133022a49604a8c0059 Mon Sep 17 00:00:00 2001 From: kolchfa-aws <105444904+kolchfa-aws@users.noreply.github.com> Date: Tue, 31 Oct 2023 15:29:28 -0400 Subject: [PATCH] Add forum page click to GA (#5458) Signed-off-by: Fanit Kolchina Signed-off-by: kolchfa-aws <105444904+kolchfa-aws@users.noreply.github.com> --- _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 bca9ed66..95ccfd11 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 aba3a16a..62d0afe2 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; }