We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0472f79 commit f5d1c15Copy full SHA for f5d1c15
dotcom-rendering/src/components/EnhanceAffiliateLinks.importable.tsx
@@ -28,12 +28,10 @@ export const EnhanceAffiliateLinks = () => {
28
const skimlinksAccountId = getSkimlinksAccountId(link.href);
29
30
// Skimlinks treats xcust as one long string, so we use | to separate values
31
- link.href += `&xcust=${encodeURIComponent(
32
- 'referrer|' +
33
- referrerDomain +
34
- '|accountId|' +
35
- skimlinksAccountId,
36
- )}`;
+ const xcustValue = `referrer|${referrerDomain}|accountId|${skimlinksAccountId}`;
+
+ link.href = `${link.href}&xcust=${encodeURIComponent(xcustValue)}`;
37
}
38
39
});
0 commit comments