Added analytics to front. Fixed group plan tracking (#10262)

This commit is contained in:
Keith Holliday
2018-04-17 12:43:52 -05:00
committed by Sabe Jones
parent ace02893e5
commit 4b9af8aa86
5 changed files with 21 additions and 18 deletions

View File

@@ -195,6 +195,7 @@
</style>
<script>
import * as Analytics from 'client/libs/analytics';
import { setup as setupPayments } from 'client/libs/payments';
import amazonPaymentsModal from 'client/components/payments/amazonModal';
import StaticHeader from './header.vue';
@@ -227,10 +228,24 @@
},
methods: {
goToNewGroupPage () {
Analytics.track({
hitType: 'event',
eventCategory: 'group-plans-static',
eventAction: 'view',
eventLabel: 'view-auth-form',
});
this.$root.$emit('bv::show::modal', 'group-plan');
},
authenticate () {
this.modalPage = 'purchaseGroup';
Analytics.track({
hitType: 'event',
eventCategory: 'group-plans-static',
eventAction: 'view',
eventLabel: 'create-group',
});
},
},
};