Skip to content

Commit

Permalink
Fix facet event label.
Browse files Browse the repository at this point in the history
  • Loading branch information
cbeer committed Sep 19, 2024
1 parent 78af604 commit 39d305b
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 39d305b

Please sign in to comment.