adding correct events on plans page (#15951)

GitOrigin-RevId: d86b9cff07b9179a80b19ecdca1542ff8f9c9cd1
This commit is contained in:
Davinder Singh 2023-11-24 16:05:56 +00:00 committed by Copybot
parent 8aedcec490
commit 310c938f80
2 changed files with 2 additions and 5 deletions

View file

@ -1,10 +1,6 @@
div.modal.fade(tabindex="-1" role="dialog" data-ol-group-plan-modal) div.modal.fade(tabindex="-1" role="dialog" data-ol-group-plan-modal)
.modal-dialog(role="document") .modal-dialog(role="document")
.modal-content( .modal-content
event-tracking="form-submitted-groups-modal-open"
event-tracking-mb="true"
event-tracking-trigger="load"
)
.modal-header .modal-header
button.close( button.close(
type="button" type="button"

View file

@ -61,6 +61,7 @@ modalEl
.on('shown.bs.modal', function () { .on('shown.bs.modal', function () {
const path = `${window.location.pathname}${window.location.search}` const path = `${window.location.pathname}${window.location.search}`
history.replaceState(null, document.title, path + '#groups') history.replaceState(null, document.title, path + '#groups')
eventTracking.sendMB('form-submitted-groups-modal-open')
}) })
.on('hidden.bs.modal', function () { .on('hidden.bs.modal', function () {
const path = `${window.location.pathname}${window.location.search}` const path = `${window.location.pathname}${window.location.search}`