From d3131958a4f15c9c0ffa26b92d46cfb82ed6792c Mon Sep 17 00:00:00 2001 From: James Chan Date: Mon, 24 Jul 2023 01:02:49 +0100 Subject: [PATCH] Add data-ga4-index-group attributes Adding this attribute will allow the indexes of different modules to be combined --- app/views/finders/show.html.erb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/views/finders/show.html.erb b/app/views/finders/show.html.erb index 771ceca3c..925a13f3c 100644 --- a/app/views/finders/show.html.erb +++ b/app/views/finders/show.html.erb @@ -82,7 +82,7 @@ class="govuk-grid-column-one-half govuk-!-text-align-right subscription-links subscription-links--desktop" data-module="ga4-link-tracker" data-ga4-track-links-only - data-ga4-set-indexes + data-ga4-index-group-number="1" data-ga4-link='{ "event_name": "navigation", "type": "subscribe", "section": "Top" }'> <%= render "govuk_publishing_components/components/subscription_links", signup_links %> @@ -111,7 +111,7 @@ id="subscription-links-footer" data-module="ga4-link-tracker" data-ga4-track-links-only - data-ga4-set-indexes + data-ga4-index-group-number="1" data-ga4-link='{ "event_name": "navigation", "type": "subscribe", "section": "Footer" }'> <%= render "govuk_publishing_components/components/subscription_links", signup_links %>