Merge branch 'release/2023.05.04' into rlsmerge/2023.05.04-to-develop-04.26
This commit is contained in:
commit
a3e12ebff2
2 changed files with 36 additions and 2 deletions
|
|
@ -167,6 +167,34 @@ export default {
|
|||
lastValuePushedToGa: null,
|
||||
};
|
||||
},
|
||||
<<<<<<< HEAD:src/digital-components/button-question/button-question.vue
|
||||
=======
|
||||
watch: {
|
||||
answers() {
|
||||
//once we get the answers to display from parent, see if we need a GA event to log what we showed
|
||||
if (this.logDisplayedValuesEvent && this.answers.length > 0) {
|
||||
var eventLabel = "";
|
||||
//build comma separated list of all items in button list that we are going to display on page
|
||||
this.answers.forEach((item) => {
|
||||
if (item.Name) {
|
||||
eventLabel += item.Name + ",";
|
||||
}
|
||||
if (item.buttonLabel) {
|
||||
eventLabel += item.buttonLabel + ",";
|
||||
}
|
||||
});
|
||||
|
||||
eventLabel = eventLabel.slice(0, -1); //remove the last comma
|
||||
this.pushEventToGA(
|
||||
this.$route.query[queryStrings.FMG_PAGE],
|
||||
this.GaActions.DISPLAYED,
|
||||
eventLabel,
|
||||
true
|
||||
);
|
||||
}
|
||||
},
|
||||
},
|
||||
>>>>>>> 2023.05.04:src/common-components/button-question/button-question.vue
|
||||
computed: {
|
||||
getFieldSetClasses() {
|
||||
const baseClasses = this.isOverflowScrollable
|
||||
|
|
@ -264,7 +292,12 @@ export default {
|
|||
var eventLabel = "";
|
||||
//build comma separated list of all items in button list that we are going to display on page
|
||||
this.answers.forEach((item) => {
|
||||
eventLabel += item.Name + ",";
|
||||
if (item.Name){
|
||||
eventLabel += item.Name + ",";
|
||||
}
|
||||
if (item.buttonLabel) {
|
||||
eventLabel += item.buttonLabel + ",";
|
||||
}
|
||||
});
|
||||
|
||||
eventLabel = eventLabel.slice(0, -1); //remove the last comma
|
||||
|
|
|
|||
|
|
@ -7,7 +7,8 @@
|
|||
:buttonTypeObject="servicePackageRadio"
|
||||
v-model="selectedPackageName"
|
||||
:validationRules="validationRules"
|
||||
:isRequired="isRequired" />
|
||||
:isRequired="isRequired"
|
||||
:logDisplayedValuesEvent="true" />
|
||||
</template>
|
||||
|
||||
<script>
|
||||
|
|
|
|||
Loading…
Reference in a new issue