Skip to content

Commit

Permalink
Apply link and button tracking globally across Whitehall
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanb-gds committed Dec 6, 2024
1 parent 70d4c99 commit 6b00ce8
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<div class="app-view-summary__sidebar-actions" data-module="ga4-button-setup">
<div class="app-view-summary__sidebar-actions">
<%= render "govuk_publishing_components/components/list", {
extra_spacing: true,
items: actions,
Expand Down
2 changes: 1 addition & 1 deletion app/helpers/admin/editions_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ def lead_organisation_id_at_index(edition, index)
end

def standard_edition_form(edition)
form_for form_url_for_edition(edition), as: :edition, html: { class: edition_form_classes(edition), multipart: true }, data: { module: "EditionForm LocaleSwitcher ga4-button-setup ga4-visual-editor-event-handlers", "rtl-locales": Locale.right_to_left.collect(&:to_param) } do |form|
form_for form_url_for_edition(edition), as: :edition, html: { class: edition_form_classes(edition), multipart: true }, data: { module: "EditionForm LocaleSwitcher ga4-visual-editor-event-handlers", "rtl-locales": Locale.right_to_left.collect(&:to_param) } do |form|
concat render("standard_fields", form:, edition:)
yield(form)
concat render("settings_fields", form:, edition:)
Expand Down
2 changes: 1 addition & 1 deletion app/views/admin/attachments/_form.html.erb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<%= form_for attachment, url: [:admin, typecast_for_attachable_routing(attachable), attachment.becomes(Attachment)], as: :attachment, html: { :class => "app-view-attachments__form", data: { module: "LocaleSwitcher ga4-button-setup ga4-visual-editor-event-handlers", "rtl-locales": Locale.right_to_left.collect(&:to_param) }}, multipart: true do |form| %>
<%= form_for attachment, url: [:admin, typecast_for_attachable_routing(attachable), attachment.becomes(Attachment)], as: :attachment, html: { :class => "app-view-attachments__form", data: { module: "LocaleSwitcher ga4-visual-editor-event-handlers", "rtl-locales": Locale.right_to_left.collect(&:to_param) }}, multipart: true do |form| %>
<div class="govuk-!-margin-bottom-8 app-view-attachments__form-title js-locale-switcher-field">
<%= render "govuk_publishing_components/components/input", {
label: {
Expand Down
2 changes: 1 addition & 1 deletion app/views/admin/new_document/index.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<div class="govuk-grid-row">
<div class="govuk-grid-column-two-thirds">
<%= form_with url: admin_new_document_options_path, data: {
module: "ga4-form-setup ga4-form-tracker ga4-link-setup ga4-link-tracker",
module: "ga4-form-setup ga4-form-tracker",
} do %>
<%= render "govuk_publishing_components/components/radio", {
heading: "New document",
Expand Down
2 changes: 1 addition & 1 deletion app/views/layouts/design_system.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@

<%= render partial: "shared/header" %>

<div class="govuk-width-container" data-module="ga4-event-tracker ga4-paste-tracker">
<div class="govuk-width-container" data-module="ga4-event-tracker ga4-paste-tracker ga4-link-setup ga4-link-tracker ga4-button-setup">
<%= render "shared/phase_banner", {
show_feedback_banner: t("admin.feedback.show_banner"),
} %>
Expand Down
2 changes: 1 addition & 1 deletion app/views/shared/_header.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
],
} %>

<div class="govuk-width-container">
<div class="govuk-width-container" data-module="ga4-link-setup ga4-link-tracker">
<%= render "components/sub_navigation", {
items: [
sub_nav_item("New document", admin_new_document_path),
Expand Down

0 comments on commit 6b00ce8

Please sign in to comment.