push siteType to GA
This commit is contained in:
parent
ed91cfa519
commit
83a9dcf63d
4 changed files with 12 additions and 1 deletions
|
|
@ -61,6 +61,7 @@ export default {
|
|||
|
||||
if (clientTagPresent) {
|
||||
const resp = await validateISSClientTag(clientTag);
|
||||
this.mainStore.issConfig.siteType = resp.data.siteType;
|
||||
|
||||
if (resp?.data.active && resp?.data.accountName.length > 0) {
|
||||
if (resp.data.authentication === 'RSAToken') {
|
||||
|
|
|
|||
|
|
@ -108,6 +108,12 @@ export default {
|
|||
this.logPageView(analyticsPageEvents.ENTRY);
|
||||
},
|
||||
|
||||
pushValueToGA() {
|
||||
pushToDataLayerIfDefined({
|
||||
siteType: useMainStore().issConfig.siteType
|
||||
});
|
||||
},
|
||||
|
||||
pushExperimentsToDataLayer() {
|
||||
const { experiments } = useMainStore().applicationUser;
|
||||
experiments?.forEach((exp) => {
|
||||
|
|
|
|||
|
|
@ -189,6 +189,9 @@ router.afterEach(async (to, from) => {
|
|||
|
||||
// Push experiments to Data Layer
|
||||
analyticsMixin.methods.pushExperimentsToDataLayer();
|
||||
|
||||
// Push values to GA
|
||||
analyticsMixin.methods.pushValueToGA();
|
||||
}
|
||||
});
|
||||
|
||||
|
|
|
|||
|
|
@ -237,7 +237,8 @@ export const getDefaultState = () => ({
|
|||
policyNumber: null,
|
||||
policyZipCode: null,
|
||||
dateOfLoss: null
|
||||
}
|
||||
},
|
||||
siteType: null
|
||||
}
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue