diff --git a/app/views/content_items/detailed_guide.html.erb b/app/views/content_items/detailed_guide.html.erb index ad0365a54..d8871bb29 100644 --- a/app/views/content_items/detailed_guide.html.erb +++ b/app/views/content_items/detailed_guide.html.erb @@ -86,16 +86,6 @@ <%= render "govuk_publishing_components/components/print_link", { margin_top: 0, margin_bottom: 6, - data_attributes: { - module: "ga4-event-tracker", - ga4_event: { - event_name: 'print_page', - type: 'print page', - index_link: 1, - index_total: 2, - section: 'Content', - }, - }, } %> <%= render 'govuk_publishing_components/components/govspeak', {} do %> diff --git a/app/views/content_items/guide.html+print.erb b/app/views/content_items/guide.html+print.erb index 1101d4856..4647b5d89 100644 --- a/app/views/content_items/guide.html+print.erb +++ b/app/views/content_items/guide.html+print.erb @@ -22,17 +22,9 @@ <%= render 'govuk_publishing_components/components/print_link', { data_attributes: { - module: "ga4-event-tracker", "track-category": "printButton", "track-action": "clicked", "track-label": t("components.print_link.text"), - ga4_event: { - event_name: 'print_page', - type: 'print page', - index_link: 1, - index_total: 2, - section: 'Content', - }, }, margin_bottom: 8, text: t("components.print_link.text"), @@ -53,17 +45,9 @@ <%= render 'govuk_publishing_components/components/print_link', { data_attributes: { - module: "ga4-event-tracker", "track-category": "printButton", "track-action": "clicked", "track-label": t("components.print_link.text"), - ga4_event: { - event_name: 'print_page', - type: 'print page', - index_link: 2, - index_total: 2, - section: 'Footer', - }, }, text: t("components.print_link.text") } %> diff --git a/app/views/content_items/html_publication.html.erb b/app/views/content_items/html_publication.html.erb index 3f1f4673c..d968b38f2 100644 --- a/app/views/content_items/html_publication.html.erb +++ b/app/views/content_items/html_publication.html.erb @@ -64,16 +64,6 @@ <%= render 'govuk_publishing_components/components/print_link', { margin_top: 0, margin_bottom: 6, - data_attributes: { - module: "ga4-event-tracker", - ga4_event: { - event_name: 'print_page', - type: 'print page', - index_link: 1, - index_total: 1, - section: 'Content', - }, - }, } %> <% end %> diff --git a/app/views/content_items/manuals/_manual_layout.html.erb b/app/views/content_items/manuals/_manual_layout.html.erb index c945bcc3e..91877c350 100644 --- a/app/views/content_items/manuals/_manual_layout.html.erb +++ b/app/views/content_items/manuals/_manual_layout.html.erb @@ -17,17 +17,6 @@ <%= yield %> - <%= render 'govuk_publishing_components/components/print_link', { - data_attributes: { - module: "ga4-event-tracker", - ga4_event: { - event_name: 'print_page', - type: 'print page', - index_link: 1, - index_total: 1, - section: 'Footer', - }, - }, - } %> + <%= render 'govuk_publishing_components/components/print_link' %> <% end %> \ No newline at end of file diff --git a/app/views/content_items/manuals/_manual_section_layout.html.erb b/app/views/content_items/manuals/_manual_section_layout.html.erb index fc96b4b20..a90274d0f 100644 --- a/app/views/content_items/manuals/_manual_section_layout.html.erb +++ b/app/views/content_items/manuals/_manual_section_layout.html.erb @@ -34,17 +34,6 @@ - <%= render 'govuk_publishing_components/components/print_link', { - data_attributes: { - module: "ga4-event-tracker", - ga4_event: { - event_name: 'print_page', - type: 'print page', - index_link: 1, - index_total: 1, - section: 'Footer', - }, - }, - } %> + <%= render 'govuk_publishing_components/components/print_link' %> <% end %> diff --git a/app/views/content_items/manuals/_updates.html.erb b/app/views/content_items/manuals/_updates.html.erb index e12c6ef66..df516302e 100644 --- a/app/views/content_items/manuals/_updates.html.erb +++ b/app/views/content_items/manuals/_updates.html.erb @@ -58,15 +58,4 @@ -<%= render 'govuk_publishing_components/components/print_link', { - data_attributes: { - module: "ga4-event-tracker", - ga4_event: { - event_name: 'print_page', - type: 'print page', - index_link: 1, - index_total: 1, - section: 'Footer', - }, - }, -} %> +<%= render 'govuk_publishing_components/components/print_link' %> diff --git a/app/views/content_items/travel_advice.html+print.erb b/app/views/content_items/travel_advice.html+print.erb index 010433d61..7d4ff303b 100644 --- a/app/views/content_items/travel_advice.html+print.erb +++ b/app/views/content_items/travel_advice.html+print.erb @@ -21,17 +21,9 @@ <%= render 'govuk_publishing_components/components/print_link', { data_attributes: { - module: "ga4-event-tracker", "track-category": "printButton", "track-action": "clicked", "track-label": t("components.print_link.text"), - ga4_event: { - event_name: 'print_page', - type: 'print page', - index_link: 1, - index_total: 2, - section: 'Content', - }, }, margin_bottom: 8, text: t("components.print_link.text"), @@ -53,17 +45,9 @@ <%= render 'govuk_publishing_components/components/print_link', { data_attributes: { - module: "ga4-event-tracker", "track-category": "printButton", "track-action": "clicked", "track-label": t("components.print_link.text"), - ga4_event: { - event_name: 'print_page', - type: 'print page', - index_link: 2, - index_total: 2, - section: 'Footer', - }, }, text: t("components.print_link.text") } %> diff --git a/app/views/shared/_published_dates_with_notification_button.html.erb b/app/views/shared/_published_dates_with_notification_button.html.erb index 5caa0a2fc..b7cb2cd57 100644 --- a/app/views/shared/_published_dates_with_notification_button.html.erb +++ b/app/views/shared/_published_dates_with_notification_button.html.erb @@ -29,16 +29,6 @@ <%= render "govuk_publishing_components/components/print_link", { margin_top: 0, margin_bottom: 8, - data_attributes: { - module: "ga4-event-tracker", - ga4_event: { - event_name: 'print_page', - type: 'print page', - index_link: 2, - index_total: 2, - section: 'Footer', - }, - }, } %>