Heritage Buttons don't send GA event for disabled buttons
Fixed extra parameter in mixin
This commit is contained in:
parent
c7bff1c758
commit
5daa0a4053
2 changed files with 10 additions and 11 deletions
|
|
@ -39,8 +39,7 @@
|
|||
$color,
|
||||
$background,
|
||||
$color,
|
||||
$background,
|
||||
$color,
|
||||
$background
|
||||
);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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');
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue