Skip to content

Commit 656ec4a

Browse files
authored
Merge pull request #14129 from guardian/ph-20250624-1414-luci
sign-in gate: update event value for sign-in link event
2 parents fc802c8 + be9df29 commit 656ec4a

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

dotcom-rendering/src/components/SignInGate/gateDesigns/SignInGateAuxia.tsx

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,16 @@ export const SignInGateAuxia = ({
5050
return input !== '';
5151
};
5252

53+
/*
54+
Whether the gate is dismissible is carried by `secondCtaName` which if it's truthy
55+
makes the gate dismissible and otherwise is non dismissible.
56+
*/
57+
58+
const isDismissible = !!secondCtaName;
59+
const dismissStatusLabel = isDismissible
60+
? 'dismissible'
61+
: 'non-dismissible';
62+
5363
return (
5464
<div css={signInGateContainer} data-testid="sign-in-gate-main">
5565
<style>{hideElementsCss}</style>
@@ -68,7 +78,7 @@ export const SignInGateAuxia = ({
6878
onClick={async () => {
6979
trackLink(
7080
ophanComponentId,
71-
'register-link',
81+
`register-link-${dismissStatusLabel}`,
7282
renderingTarget,
7383
abTest,
7484
);
@@ -80,7 +90,7 @@ export const SignInGateAuxia = ({
8090
>
8191
{firstCtaName}
8292
</LinkButton>
83-
{!!secondCtaName && (
93+
{isDismissible && (
8494
<Button
8595
data-testid="sign-in-gate-main_dismiss"
8696
data-ignore="global-link-styling"

0 commit comments

Comments
 (0)