overleaf/services/web/app/src/Features/Subscription/plansV2Config.js
M Fahru 1549bac91a Fix event segmentations for some of the plans-page-click events on the new plans page (#9781)
* change event segmentation to plans-page-layout-v2-annual

* update some new plans page event to have new event key

* add location segmentation key for some of the group plans events

GitOrigin-RevId: 99d8258112d9661955a196e57ca05a017afba0f4
2022-09-30 08:04:43 +00:00

69 lines
1.5 KiB
JavaScript

const plansV2Features = require('./plansV2Features')
const config = {
individual: {
tableHead: {
individual_free: {},
individual_personal: {},
individual_collaborator: {},
individual_professional: {},
},
features: plansV2Features.individual,
highlightedColumn: {
index: 2,
text: {
monthly: 'MOST POPULAR',
annual: 'MOST POPULAR',
},
},
eventTrackingKey: 'plans-page-click',
additionalEventSegmentation: {
'plans-page-layout-v2-annual': 'new-plans-page',
},
},
group: {
tableHead: {
group_collaborator: {},
group_professional: {},
group_organization: {},
},
features: plansV2Features.group,
highlightedColumn: {
index: 0,
text: {
annual: 'MOST POPULAR',
},
},
eventTrackingKey: 'plans-page-click',
additionalEventSegmentation: {
'plans-page-layout-v2-annual': 'new-plans-page',
},
},
student: {
baseColspan: 2,
maxColumn: 3,
tableHead: {
student_free: {
colspan: 3,
},
student_student: {
showExtraContent: false,
colspan: 3,
},
},
features: plansV2Features.student,
highlightedColumn: {
index: 1,
text: {
monthly: 'SAVE 20% ON ANNUAL PLAN',
annual: 'SAVING 20%',
},
},
eventTrackingKey: 'plans-page-click',
additionalEventSegmentation: {
'plans-page-layout-v2-annual': 'new-plans-page',
},
},
}
module.exports = config