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

Add data layer value to track benefit accordion open #1466

Closed
nickpistone opened this issue Jun 21, 2024 · 2 comments · Fixed by #1490
Closed

Add data layer value to track benefit accordion open #1466

nickpistone opened this issue Jun 21, 2024 · 2 comments · Fixed by #1490
Assignees
Milestone

Comments

@nickpistone
Copy link
Collaborator

Description

Data layer event will fire when accordions are opened but not when they are closed. It will contain the existing data-analytics and data-analytics content variables which identify it as an accordion and pass the name of the benefit. The purpose of this refinement is to avoid the inflation of our accordion click number, which would otherwise count both opens and closes. When we track users, we are able to get a unique count of accordion clicks. But if we want to track actions, we need to remove the closes in order to have accurate data. For now, we can only have accurate data when looking at users.

User Story

No response

Acceptance Criteria

-Data layer value is present whenever users open accordion but does not fire again when they close it

@nickpistone
Copy link
Collaborator Author

Please also consider the open all/close all accordion link. We can track that with a separate tag, but it needs to have a data layer variable as well. The analytics goal is to have accurate data on the number of people or sessions where someone opened an accordion (one or multiple) and show that number compared to the number of clicks on benefits. An accurate number of accordion opens will help us see the dropoff rate between how many people saw the benefit and clicked it. We don't care how many times the accordions were closed. So we only want to track the number of opens.

@nickpistone
Copy link
Collaborator Author

Confirmed

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