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

Flatten GA4 attributes #3417

Merged
merged 1 commit into from
Oct 27, 2023
Merged

Flatten GA4 attributes #3417

merged 1 commit into from
Oct 27, 2023

Conversation

andysellick
Copy link
Contributor

⚠️ This repo is Continuously Deployed: make sure you follow the guidance ⚠️

What / why

  • we no longer need to nest GA4 attributes attached to elements, notably the index attributes
  • these attributes when collected by trackers are automatically nested based on the structure of the GA4 schema, held in the gem
  • flattening them here saves code and complexity

Visual changes

None.

Trello card: https://trello.com/c/IseA05Fd/644-remove-nesting-of-ga4-attributes

@govuk-ci govuk-ci temporarily deployed to collections-pr-3417 October 18, 2023 15:06 Inactive
@andysellick andysellick marked this pull request as ready for review October 18, 2023 15:10
@andysellick andysellick requested a review from AshGDS October 27, 2023 08:23
Copy link
Contributor

@AshGDS AshGDS left a comment

Choose a reason for hiding this comment

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

Looks good 👍 A small change is needed though

app/views/components/_topic_list.html.erb Show resolved Hide resolved
- we no longer need to nest GA4 attributes attached to elements, notably the index attributes
- these attributes when collected by trackers are automatically nested based on the structure of the GA4 schema, held in the gem
- flattening them here saves code and complexity
@andysellick andysellick force-pushed the flatten-ga4-attributes branch from e90621a to 96ab6d8 Compare October 27, 2023 09:52
@andysellick andysellick merged commit d8a5671 into main Oct 27, 2023
9 checks passed
@andysellick andysellick deleted the flatten-ga4-attributes branch October 27, 2023 10:30
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