Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update search toggle tracking #2262

Merged
merged 1 commit into from
Aug 11, 2021
Merged

Update search toggle tracking #2262

merged 1 commit into from
Aug 11, 2021

Conversation

injms
Copy link
Contributor

@injms injms commented Aug 11, 2021

What

Updates the event being fired by the search toggle from menuOpened and menuClosed to searchOpened and searchClosed.

It'd be nice to have a more elegant way of doing this, but this fixes a problem that needs to be fixed quickly.

Why

This will differentiate the events being fired by the menu and the search toggles to allow for more accurate analysis of users interactions.

Visual Changes

None.

@bevanloon bevanloon temporarily deployed to govuk-publis-update-sea-amjpau August 11, 2021 13:45 Inactive
This will differentiate the events being fire by the menu toggle and the
search toggle. Since the toggle code can be used for either, a data
attribute needed to be added to make sure that it fires the correct
name.
@injms injms force-pushed the update-search-toggle-tracking branch from fd8d991 to 52cb912 Compare August 11, 2021 14:28
@bevanloon bevanloon temporarily deployed to govuk-publis-update-sea-amjpau August 11, 2021 14:28 Inactive
@injms injms requested a review from owenatgov August 11, 2021 15:43
Copy link
Contributor

@owenatgov owenatgov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Amazing!

@injms injms merged commit e549a4e into master Aug 11, 2021
@injms injms deleted the update-search-toggle-tracking branch August 11, 2021 16:05
injms added a commit that referenced this pull request Aug 12, 2021
Includes:

* Extend track click script (#2263)
* Fix cookie banner issue (IE10) (#2231)
* Extend layout for public with account components (#2255)
* Update search toggle tracking (#2262)
@injms injms mentioned this pull request Aug 12, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants