Skip to content

Commit

Permalink
purchase event on promo banner
Browse files Browse the repository at this point in the history
  • Loading branch information
Lakeyzer committed Nov 29, 2024
1 parent 9096f10 commit 01e2517
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/components/PromoBanner.vue
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
href="https://www.patreon.com/shieldmaidenapp/membership"
target="_blank"
rel="noopener"
@click="purchaseEvent"
>
<button v-if="closable" class="no-thanks" @click.stop.prevent="show_banner = false">
no thanks
Expand Down Expand Up @@ -82,6 +83,13 @@ export default {
return hours;
},
},
methods: {
purchaseEvent() {
this.$gtm.trackEvent({
event: "purchase",
});
},
},
mounted() {
if (this.show_banner) {
this.$emit("discount", this.discount);
Expand Down

0 comments on commit 01e2517

Please sign in to comment.