Heritage Buttons don't send GA event for disabled buttons

Fixed extra parameter in mixin
This commit is contained in:
Josh Dassinger 2026-01-05 13:03:44 -06:00
parent c7bff1c758
commit 5daa0a4053
2 changed files with 10 additions and 11 deletions

View file

@ -39,8 +39,7 @@
$color,
$background,
$color,
$background,
$color,
$background
);
}
}

View file

@ -35,16 +35,16 @@ export default {
},
methods: {
clicked() {
if (this.pushToGA) {
this.pushEventToGA(
this.$route.query[this.queryStrings.ISS_PAGE],
this.GaActions.CLICKED,
this.buttonText,
true
);
}
if (!this.isDisabled) {
if (this.pushToGA) {
this.pushEventToGA(
this.$route.query[this.queryStrings.ISS_PAGE],
this.GaActions.CLICKED,
this.buttonText,
true
);
}
this.$emit('click-event');
}
}