Skip to content

Commit

Permalink
Mobile filters flatten GA4 attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
andysellick committed Oct 18, 2023
1 parent b3a4d64 commit 729fcc6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
6 changes: 2 additions & 4 deletions app/assets/javascripts/modules/mobile-filters-modal.js
Original file line number Diff line number Diff line change
Expand Up @@ -97,10 +97,8 @@ window.GOVUK.Modules = window.GOVUK.Modules || {};
type: 'finder',
text: 'Filter',
section: 'Filter',
index: {
index_section: 0,
index_section_count: indexSectionCount
}
index_section: 0,
index_section_count: indexSectionCount
}))
}

Expand Down
6 changes: 2 additions & 4 deletions spec/javascripts/modules/mobile-filters-modal.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -142,10 +142,8 @@ describe('Mobile filters', function () {
type: 'finder',
text: 'Filter',
section: 'Filter',
index: {
index_section: 0,
index_section_count: 5
}
index_section: 0,
index_section_count: 5
}
expect(button.getAttribute('data-ga4-event')).toEqual(JSON.stringify(expected))
})
Expand Down

0 comments on commit 729fcc6

Please sign in to comment.