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

Create data layer push event for open all/close all accordion button on results pages #1515

Closed
nickpistone opened this issue Jun 28, 2024 · 2 comments · Fixed by #1520
Closed
Assignees
Milestone

Comments

@nickpistone
Copy link
Collaborator

Description

Create a data layer event that fires whenever someone clicks "open all/close all accordions" on the results pages (including benefits you didn't qualify for). This event should either:
a. use a value to distinguish between the open and closed states
b. only fire when users open the accordions and not when they close them
By tracking only the opens or separating out the opens and closes, we can prevent the inflation of data and skewing of our drop-off rate.

User Story

As a data analyst, I want to accurately track all of the ways that users can open accordions in order for the user journey funnel to accurately reflect the drop-off between opening the accordion and clicking on the benefit link

Acceptance Criteria

Data layer event fires whenever someone clicks open all/close all
Event can distinguish between open and close (can use a data layer variable with value "open" or "close" OR event only fires on open (either option works)

@nickpistone
Copy link
Collaborator Author

This is working but it fires on open all and close all. Is it possible to make it only fire when it opens the accordions or alternatively fire some additional variable to distinguish between open and close? I can live with it as is, since it's not clicked very often. But I know David would prefer it to track opens only to align with the way he collects data across USA.gov.

@nickpistone
Copy link
Collaborator Author

It appears that once the open all close all button is clicked it leaves the accordions open when you navigate to the benefits you didn't qualify for. Creating a bug ticket for this.

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 a pull request may close this issue.

2 participants