From dfabfda3b055790d59bd9638a6b4fec66bd73bae Mon Sep 17 00:00:00 2001 From: AshGDS <8880610+AshGDS@users.noreply.github.com> Date: Thu, 28 Sep 2023 14:53:28 +0100 Subject: [PATCH] Change GA4 type for show/hide updates accordions --- app/views/components/_published_dates.html.erb | 2 +- app/views/content_items/service_manual_guide.html.erb | 2 +- test/components/published_dates_test.rb | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/views/components/_published_dates.html.erb b/app/views/components/_published_dates.html.erb index a445f382b..0ce172f55 100644 --- a/app/views/components/_published_dates.html.erb +++ b/app/views/components/_published_dates.html.erb @@ -26,7 +26,7 @@ data-expanded="false" data-toggled-text="- <%= t('components.published_dates.hide_all_updates', locale: :en) %>" data-module="ga4-event-tracker" - data-ga4-event="<%= {event_name: "select_content", type: "content", section: "Footer"}.to_json %>" + data-ga4-event="<%= {event_name: "select_content", type: "content history", section: "Footer"}.to_json %>" data-ga4-expandable >+ <%= t('components.published_dates.show_all_updates', locale: :en) %>
diff --git a/app/views/content_items/service_manual_guide.html.erb b/app/views/content_items/service_manual_guide.html.erb index 6e716c6b0..195f50180 100644 --- a/app/views/content_items/service_manual_guide.html.erb +++ b/app/views/content_items/service_manual_guide.html.erb @@ -111,7 +111,7 @@ data-toggled-text="- Hide all page updates (<%= @content_item.previous_changes.length %>)" data-expanded="false" data-module="ga4-event-tracker" - data-ga4-event="<%= {event_name: "select_content", type: "content", section: "Footer"}.to_json %>" + data-ga4-event="<%= {event_name: "select_content", type: "content history", section: "Footer"}.to_json %>" data-ga4-expandable role="button" aria-controls="full-history" diff --git a/test/components/published_dates_test.rb b/test/components/published_dates_test.rb index c053e7765..642e35263 100644 --- a/test/components/published_dates_test.rb +++ b/test/components/published_dates_test.rb @@ -101,7 +101,7 @@ def component_name expected_ga4_json = { "event_name": "select_content", - "type": "content", + "type": "content history", "section": "Footer", }.to_json