File tree Expand file tree Collapse file tree 1 file changed +21
-2
lines changed
dotcom-rendering/src/components Expand file tree Collapse file tree 1 file changed +21
-2
lines changed Original file line number Diff line number Diff line change @@ -587,6 +587,20 @@ const SignInGateSelectorAuxia = ({
587
587
This function if the Auxia prototype for the SignInGateSelector component.
588
588
*/
589
589
590
+ const buildAbTestTrackingAuxiaVariant = (
591
+ treatmentId : string ,
592
+ ) : {
593
+ name : string ;
594
+ variant : string ;
595
+ id : string ;
596
+ } => {
597
+ return {
598
+ name : 'AuxiaSignInGate' ,
599
+ variant : treatmentId ,
600
+ id : treatmentId ,
601
+ } ;
602
+ } ;
603
+
590
604
const authStatus = useAuthStatus ( ) ;
591
605
592
606
const isSignedIn =
@@ -640,7 +654,9 @@ const SignInGateSelectorAuxia = ({
640
654
id : data . auxiaData . userTreatment . treatmentId ,
641
655
} ,
642
656
action : 'VIEW' ,
643
- abTest,
657
+ abTest : buildAbTestTrackingAuxiaVariant (
658
+ data . auxiaData . userTreatment . treatmentId ,
659
+ ) ,
644
660
} ,
645
661
renderingTarget ,
646
662
) ;
@@ -675,7 +691,10 @@ const SignInGateSelectorAuxia = ({
675
691
signInUrl = { signInUrl }
676
692
// eslint-disable-next-line @typescript-eslint/strict-boolean-expressions -- Odd react types, should review
677
693
setShowGate = { ( show ) => setIsGateDismissed ( ! show ) }
678
- abTest = { abTest }
694
+ abTest = { buildAbTestTrackingAuxiaVariant (
695
+ auxiaGateDisplayData . auxiaData . userTreatment
696
+ . treatmentId ,
697
+ ) }
679
698
userTreatment = {
680
699
auxiaGateDisplayData . auxiaData . userTreatment
681
700
}
You can’t perform that action at this time.
0 commit comments