@@ -114,13 +114,14 @@ export const init = (
114
114
115
115
setCurrentFramework ( framework ) ;
116
116
117
+ const isCorpABTest : boolean = window . location . search . includes ( 'CORP_FLAG' ) ;
117
118
// To ensure users who are not part of Consent or Pay country or AB Test
118
- if ( ! isConsentOrPayCountry ( countryCode ) ) {
119
+ if ( ! isCorpABTest || ! isConsentOrPayCountry ( countryCode ) ) {
119
120
useNonAdvertisedList = false ;
120
121
}
121
122
122
123
setIsConsentOrPay (
123
- isConsentOrPayCountry ( countryCode ) && ! useNonAdvertisedList ,
124
+ isConsentOrPayCountry ( countryCode ) && ! useNonAdvertisedList && isCorpABTest ,
124
125
) ;
125
126
126
127
// invoke callbacks before we receive Sourcepoint
@@ -159,6 +160,7 @@ export const init = (
159
160
accountId : ACCOUNT_ID ,
160
161
propertyId : getPropertyId ( framework , useNonAdvertisedList ) ,
161
162
propertyHref : getPropertyHref ( framework , useNonAdvertisedList ) ,
163
+ joinHref : true ,
162
164
isSPA : true ,
163
165
targetingParams : {
164
166
framework,
@@ -240,7 +242,8 @@ export const init = (
240
242
choiceTypeID === SourcePointChoiceTypes . RejectAll &&
241
243
message_type === 'gdpr' &&
242
244
isConsentOrPayCountry ( countryCode ) &&
243
- ! useNonAdvertisedList
245
+ ! useNonAdvertisedList &&
246
+ isCorpABTest
244
247
) {
245
248
window . location . href = getSupportSignUpPage ( ) ;
246
249
}
@@ -306,6 +309,7 @@ export const init = (
306
309
excludePage : isExcludedFromCMP ( pageSection ) ,
307
310
isCorP : isConsentOrPayCountry ( countryCode ) ,
308
311
isUserSignedIn,
312
+ isCorpABTest,
309
313
} ,
310
314
} ;
311
315
break ;
0 commit comments