From 77373ebe514dd313287b08560dbafab49bec2e5a Mon Sep 17 00:00:00 2001 From: AshGDS <8880610+AshGDS@users.noreply.github.com> Date: Tue, 26 Sep 2023 14:55:52 +0100 Subject: [PATCH 1/4] Add GA4 form tracker to the survey banner email survey --- app/assets/javascripts/surveys.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/assets/javascripts/surveys.js b/app/assets/javascripts/surveys.js index 50bc36ca9..d6d543f05 100644 --- a/app/assets/javascripts/surveys.js +++ b/app/assets/javascripts/surveys.js @@ -24,7 +24,7 @@ 'id="user-survey-cancel" ' + 'role="button" ' + 'data-module="ga4-event-tracker" ' + - 'data-ga4-event=\'' + JSON.stringify({ event_name: 'select_content', type: 'survey banner', action: 'closed' }) + + 'data-ga4-event=\'' + JSON.stringify({ event_name: 'select_content', type: 'survey banner', action: 'closed', section: '{{title}}' }) + '\'>Close' + '

{{title}}

' + '
' + '
' + - '