Skip to content

Commit

Permalink
Merge pull request #4426 from sul-dlss/facet-event
Browse files Browse the repository at this point in the history
Fix facet event label.
  • Loading branch information
cbeer authored Sep 23, 2024
2 parents 5657dae + 39d305b commit 513efce
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/javascript/analytics.js
Original file line number Diff line number Diff line change
Expand Up @@ -129,14 +129,14 @@ Blacklight.onLoad(function() {
sendAnalyticsEvent({
category: 'Facet',
action: 'SW/closed-facet',
label: getText(e)
label: $(e.currentTarget).parent().find('h3').text().trim()
})
})
$('.facet-content').on('show.bs.collapse', function(e) {
sendAnalyticsEvent({
category: 'Facet',
action: 'SW/expanded-facet',
label: getText(e)
label: $(e.currentTarget).parent().find('h3').text().trim()
})
})

Expand Down

0 comments on commit 513efce

Please sign in to comment.