Skip to content

Commit 6ac7262

Browse files
authored
remove utm_source redundancy (#1874)
1 parent d260511 commit 6ac7262

File tree

6 files changed

+33
-27
lines changed

6 files changed

+33
-27
lines changed

common/constants/partners.js

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -21,91 +21,91 @@ const partners = [
2121
{
2222
name: 'APEX Systems',
2323
logoSource: `${s3}partnerLogos/apex_systems.png`,
24-
url: 'https://apexsystems.com/?utm_source=operationcode',
24+
url: 'https://apexsystems.com',
2525
type: PARTNER_TYPES.KIND,
2626
},
2727
{
2828
name: 'GitHub',
2929
logoSource: `${s3}partnerLogos/github.png`,
30-
url: 'https://github.com/?utm_source=operationcode',
30+
url: 'https://github.com',
3131
type: PARTNER_TYPES.KIND,
3232
},
3333
{
3434
name: 'Elyon International',
3535
logoSource: `${s3}partnerLogos/elyon.png`,
36-
url: 'https://elyoninternational.com/?utm_source=operationcode',
36+
url: 'https://elyoninternational.com',
3737
type: PARTNER_TYPES.KIND,
3838
},
3939
{
4040
name: '1Password',
4141
logoSource: `${s3}partnerLogos/1password.png`,
42-
url: 'https://1password.com/?utm_source=operationcode',
42+
url: 'https://1password.com',
4343
type: PARTNER_TYPES.KIND,
4444
},
4545
{
4646
name: 'US Bank',
4747
logoSource: `${s3}partnerLogos/usbank.png`,
48-
url: 'https://www.usbank.com/index.html?utm_source=operationcode',
48+
url: 'https://www.usbank.com/index.html',
4949
type: PARTNER_TYPES.PAID,
5050
},
5151
{
5252
name: 'Threat Stack',
5353
logoSource: `${s3}partnerLogos/threat_stack.png`,
54-
url: 'https://threatstack.com/?utm_source=operationcode',
54+
url: 'https://threatstack.com',
5555
type: PARTNER_TYPES.PAID,
5656
},
5757
{
5858
name: "O'Reilly Media",
5959
logoSource: `${s3}partnerLogos/oreilly.png`,
60-
url: 'https://oreilly.com/?utm_source=operationcode',
60+
url: 'https://oreilly.com',
6161
type: PARTNER_TYPES.KIND,
6262
},
6363
{
6464
name: 'HackerRank',
6565
logoSource: `${s3}partnerLogos/hackerrank.png`,
66-
url: 'https://hackerrank.com/?utm_source=operationcode',
66+
url: 'https://hackerrank.com',
6767
type: PARTNER_TYPES.KIND,
6868
},
6969
{
7070
name: 'Zapier',
7171
logoSource: `${s3}partnerLogos/zapier.png`,
72-
url: 'https://zapier.com/?utm_source=operationcode',
72+
url: 'https://zapier.com',
7373
type: PARTNER_TYPES.KIND,
7474
},
7575
{
7676
name: 'LogRocket',
7777
logoSource: `${s3}partnerLogos/logrocket.png`,
78-
url: 'https://logrocket.com/?utm_source=operationcode',
78+
url: 'https://logrocket.com',
7979
type: PARTNER_TYPES.KIND,
8080
},
8181
{
8282
name: 'Vercel',
8383
logoSource: `${s3}partnerLogos/vercel.png`,
84-
url: 'https://vercel.com/home?utm_source=operationcode',
84+
url: 'https://vercel.com',
8585
type: PARTNER_TYPES.KIND,
8686
},
8787
{
8888
name: 'Secure Code Warrior',
8989
logoSource: `https://user-images.githubusercontent.com/51661129/92973323-3d540b80-f484-11ea-85dd-d202fc751cd9.png`,
90-
url: 'https://securecodewarrior.com/?utm_source=operationcode',
90+
url: 'https://securecodewarrior.com',
9191
type: PARTNER_TYPES.KIND,
9292
},
9393
{
9494
name: 'Chromatic',
9595
logoSource: `${s3}partnerLogos/chromatic.png`,
96-
url: 'https://chromatic.com/?utm_source=operationcode',
96+
url: 'https://chromatic.com',
9797
type: PARTNER_TYPES.KIND,
9898
},
9999
{
100100
name: 'Coursera',
101101
logoSource: `${s3}partnerLogos/coursera.png`,
102-
url: 'https://coursera.org/?utm_source=operationcode',
102+
url: 'https://coursera.org',
103103
type: PARTNER_TYPES.KIND,
104104
},
105105
{
106106
name: 'Team Treehouse',
107107
logoSource: `${s3}partnerLogos/treehouse.png`,
108-
url: 'https://teamtreehouse.com/?utm_source=operationcode',
108+
url: 'https://teamtreehouse.com',
109109
type: PARTNER_TYPES.KIND,
110110
},
111111
{ name: 'Etsy', logoSource: etsy.src, url: 'https://etsy.com', type: PARTNER_TYPES.PAID },

components/Footer/Footer.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ function Footer() {
6666
/>
6767
</OutboundLink>
6868
<OutboundLink
69-
href="https://www.comptia.org"
69+
href="https://www.comptia.org/?utm_source=operationcode"
7070
analyticsEventLabel="Footer CompTIA"
7171
hasIcon={false}
7272
>

components/Footer/__tests__/__snapshots__/Footer.test.tsx.snap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ exports[`Footer > should render with no props passed 1`] = `
4747
<OutboundLink
4848
analyticsEventLabel="Footer CompTIA"
4949
hasIcon={false}
50-
href="https://www.comptia.org"
50+
href="https://www.comptia.org/?utm_source=operationcode"
5151
>
5252
<MockedNextImage
5353
alt="CompTIA Authorized Partner - Gold"

components/PartnerLogoLink/PartnerLogoLink.tsx

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,14 @@ export default function PartnerLogoLink({
3535
url,
3636
size = 'medium',
3737
}: PartnerLogoLinkPropsType) {
38+
const urlObj = new URL(url);
39+
urlObj.searchParams.append('utm_source', 'operationcode');
3840
return (
39-
<OutboundLink href={url} analyticsEventLabel={`Partner Logo Click - ${name}`} hasIcon={false}>
41+
<OutboundLink
42+
href={urlObj.toString()}
43+
analyticsEventLabel={`Partner Logo Click - ${name}`}
44+
hasIcon={false}
45+
>
4046
<div className={`relative ${sizeMappings[size]}`}>
4147
<Image
4248
className="transition-all duration-200 ease-linear grayscale opacity-60 hover:grayscale-0 hover:opacity-100 hover:transition-all hover:duration-200 hover:ease-linear object-contain"

components/PartnerLogoLink/__tests__/__snapshots__/PartnerLogoLink.test.tsx.snap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
exports[`PartnerLogoLink > should render with required props 1`] = `
44
<a
55
className="inline-flex items-start"
6-
href="https://user-images.githubusercontent.com"
6+
href="https://user-images.githubusercontent.com/?utm_source=operationcode"
77
onClick={[Function]}
88
rel="noopener noreferrer"
99
target="_blank"

components/ReusableSections/SponsorsSection/__tests__/__snapshots__/SponsorsSection.test.tsx.snap

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ exports[`SponsorsSection > should render 1`] = `
9090
>
9191
<a
9292
className="inline-flex items-start"
93-
href="https://etsy.com"
93+
href="https://etsy.com/?utm_source=operationcode"
9494
onClick={[Function]}
9595
rel="noopener noreferrer"
9696
target="_blank"
@@ -111,7 +111,7 @@ exports[`SponsorsSection > should render 1`] = `
111111
</a>
112112
<a
113113
className="inline-flex items-start"
114-
href="https://www.juniper.net"
114+
href="https://www.juniper.net/?utm_source=operationcode"
115115
onClick={[Function]}
116116
rel="noopener noreferrer"
117117
target="_blank"
@@ -176,7 +176,7 @@ exports[`SponsorsSection > should render 1`] = `
176176
</a>
177177
<a
178178
className="inline-flex items-start"
179-
href="https://www.umpquabank.com/"
179+
href="https://www.umpquabank.com/?utm_source=operationcode"
180180
onClick={[Function]}
181181
rel="noopener noreferrer"
182182
target="_blank"
@@ -286,7 +286,7 @@ exports[`SponsorsSection > should render 1`] = `
286286
</a>
287287
<a
288288
className="inline-flex items-start"
289-
href="https://airbnb.com"
289+
href="https://airbnb.com/?utm_source=operationcode"
290290
onClick={[Function]}
291291
rel="noopener noreferrer"
292292
target="_blank"
@@ -329,7 +329,7 @@ exports[`SponsorsSection > should render 1`] = `
329329
</a>
330330
<a
331331
className="inline-flex items-start"
332-
href="https://www.codeplatoon.org"
332+
href="https://www.codeplatoon.org/?utm_source=operationcode"
333333
onClick={[Function]}
334334
rel="noopener noreferrer"
335335
target="_blank"
@@ -416,7 +416,7 @@ exports[`SponsorsSection > should render 1`] = `
416416
</a>
417417
<a
418418
className="inline-flex items-start"
419-
href="https://google.com"
419+
href="https://google.com/?utm_source=operationcode"
420420
onClick={[Function]}
421421
rel="noopener noreferrer"
422422
target="_blank"
@@ -547,7 +547,7 @@ exports[`SponsorsSection > should render 1`] = `
547547
</a>
548548
<a
549549
className="inline-flex items-start"
550-
href="https://uniteus.com"
550+
href="https://uniteus.com/?utm_source=operationcode"
551551
onClick={[Function]}
552552
rel="noopener noreferrer"
553553
target="_blank"
@@ -568,7 +568,7 @@ exports[`SponsorsSection > should render 1`] = `
568568
</a>
569569
<a
570570
className="inline-flex items-start"
571-
href="https://vercel.com/home?utm_source=operationcode"
571+
href="https://vercel.com/?utm_source=operationcode"
572572
onClick={[Function]}
573573
rel="noopener noreferrer"
574574
target="_blank"

0 commit comments

Comments
 (0)