Skip to content

Commit

Permalink
Use new GA4 search tracker in layout super nav header
Browse files Browse the repository at this point in the history
  • Loading branch information
csutter committed Oct 31, 2024
1 parent a0947a8 commit 5ca4c68
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 13 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
## Unreleased

* Chart component accessibility improvements ([PR #4344](https://github.com/alphagov/govuk_publishing_components/pull/4344))
* Add new custom analytics tracker for search ([PR #4354](https://github.com/alphagov/govuk_publishing_components/pull/4354)))
* Add new custom analytics tracker for search and use in layout super nav header ([PR #4354](https://github.com/alphagov/govuk_publishing_components/pull/4354))

## 44.9.1

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -303,18 +303,12 @@
class: "gem-c-layout-super-navigation-header__search-form",
id: "search",
data: {
module: "ga4-form-tracker",
ga4_form: {
event_name: "search",
type: "header menu bar",
section: "Search GOV.UK",
action: "search",
url: "/search/all",
index_section: 3,
index_section_count: 3,
},
ga4_form_include_text: "",
ga4_form_no_answer_undefined: "",
module: "ga4-search-tracker",
ga4_search_type: "header menu bar",
ga4_search_url: "/search/all",
ga4_search_section: "Search GOV.UK",
ga4_search_index_section: 3,
ga4_search_index_section_count: 3,
},
action: absolute_links_helper.make_url_absolute("/search/all"),
method: "get",
Expand Down

0 comments on commit 5ca4c68

Please sign in to comment.