Merge pull request #10418 from overleaf/msm-fix-itm-campaign

Fix `itm_campaign=undefined` in insterstitial plans page

GitOrigin-RevId: 4826b507a93d3c324d600a938234ba31b4582955
This commit is contained in:
Miguel Serrano 2022-11-16 12:34:56 +01:00 committed by Copybot
parent edeaa4baa0
commit 75fcdafb15

View file

@ -513,8 +513,9 @@ mixin additional_link_group(eventTrackingKey, additionalEventSegmentation, plan)
mixin additional_link_buy(eventTrackingKey, additionalEventSegmentation, plan, period)
- var buttonSegmentation = plan + '-link'
- var segmentation = JSON.stringify(Object.assign({}, {button: buttonSegmentation, location: 'table-header', period}, additionalEventSegmentation))
- var itmCampaign = itm_campaign ? { itm_campaign } : {itm_campaign: 'plans'}
- var itmReferrer = itm_referrer ? { itm_referrer } : {}
- var qs = new URLSearchParams({planCode: plan, currency: recommendedCurrency, itm_campaign, itm_content: 'card', ...itmReferrer})
- var qs = new URLSearchParams({planCode: plan, currency: recommendedCurrency, itm_content: 'card', ...itmCampaign, ...itmReferrer})
small.plans-v2-table-th-content-additional-link
| #{translate("or")}
a(