Skip to content

Commit b147462

Browse files
committed
[TOOL-3880] Playground: Add utm_source on external links
1 parent a17d893 commit b147462

File tree

29 files changed

+34
-31
lines changed

29 files changed

+34
-31
lines changed

apps/playground-web/src/app/connect/account-abstraction/connect/page.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ export default function Page() {
2828
full wallet programmability.
2929
</>
3030
}
31-
docsLink="https://portal.thirdweb.com/connect/account-abstraction/overview"
31+
docsLink="https://portal.thirdweb.com/connect/account-abstraction/overview?utm_source=playground"
3232
heroLink="/account-abstraction.png"
3333
/>
3434

apps/playground-web/src/app/connect/account-abstraction/native-aa/page.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ export default function Page() {
2525
full wallet programmability.
2626
</>
2727
}
28-
docsLink="https://portal.thirdweb.com/connect/account-abstraction/overview"
28+
docsLink="https://portal.thirdweb.com/connect/account-abstraction/overview?utm_source=playground"
2929
heroLink="/account-abstraction.png"
3030
/>
3131

apps/playground-web/src/app/connect/account-abstraction/sponsor/page.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ export default function Page() {
2525
full wallet programmability.
2626
</>
2727
}
28-
docsLink="https://portal.thirdweb.com/connect/account-abstraction/overview"
28+
docsLink="https://portal.thirdweb.com/connect/account-abstraction/overview?utm_source=playground"
2929
heroLink="/account-abstraction.png"
3030
/>
3131

apps/playground-web/src/app/connect/auth/page.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ export default function Page() {
2828
them to create an additional account.
2929
</>
3030
}
31-
docsLink="https://portal.thirdweb.com/typescript/v5/auth"
31+
docsLink="https://portal.thirdweb.com/typescript/v5/auth?utm_source=playground"
3232
heroLink="/auth.png"
3333
/>
3434

apps/playground-web/src/app/connect/blockchain-api/page.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ export default function Page() {
2828
contract on any EVM chain through our RPC Edge endpoints.
2929
</>
3030
}
31-
docsLink="https://portal.thirdweb.com/typescript/v5"
31+
docsLink="https://portal.thirdweb.com/typescript/v5?utm_source=playground"
3232
heroLink="/blockchain-api.png"
3333
/>
3434

apps/playground-web/src/app/connect/in-app-wallet/layout.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ export default function Page(props: { children: React.ReactNode }) {
2020
and smart account integration.
2121
</>
2222
}
23-
docsLink="https://portal.thirdweb.com/connect/in-app-wallet/overview"
23+
docsLink="https://portal.thirdweb.com/connect/in-app-wallet/overview?utm_source=playground"
2424
heroLink="/in-app-wallet.png"
2525
/>
2626

apps/playground-web/src/app/connect/pay/backend/layout.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ export default function Layout(props: {
1111
description={
1212
<>HTTP API to bridge, swap and onramp to and from any currency</>
1313
}
14-
docsLink="https://portal.thirdweb.com/connect/pay/overview"
14+
docsLink="https://portal.thirdweb.com/connect/pay/overview?utm_source=playground"
1515
heroLink="/ub.png"
1616
/>
1717

apps/playground-web/src/app/connect/pay/commerce/page.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ export default function Page() {
2424
chain.
2525
</>
2626
}
27-
docsLink="https://portal.thirdweb.com/connect/pay/get-started"
27+
docsLink="https://portal.thirdweb.com/connect/pay/get-started?utm_source=playground"
2828
heroLink="/pay.png"
2929
/>
3030

apps/playground-web/src/app/connect/pay/embed/LeftSection.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -529,7 +529,7 @@ export function LeftSection(props: {
529529
</p>
530530

531531
<Link
532-
href="https://portal.thirdweb.com/connect/account-abstraction/overview"
532+
href="https://portal.thirdweb.com/connect/account-abstraction/overview?utm_source=playground"
533533
target="_blank"
534534
className="inline-flex items-center gap-2 text-muted-foreground hover:text-foreground"
535535
>

apps/playground-web/src/app/connect/pay/fund-wallet/page.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ export default function Page() {
2424
and generate revenue for each user transaction.
2525
</>
2626
}
27-
docsLink="https://portal.thirdweb.com/connect/pay/get-started"
27+
docsLink="https://portal.thirdweb.com/connect/pay/get-started?utm_source=playground"
2828
heroLink="/pay.png"
2929
/>
3030

apps/playground-web/src/app/connect/pay/page.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ export default function Page(props: {
2626
and generate revenue for each user transaction.
2727
</>
2828
}
29-
docsLink="https://portal.thirdweb.com/connect/pay/get-started"
29+
docsLink="https://portal.thirdweb.com/connect/pay/get-started?utm_source=playground"
3030
heroLink="/pay.png"
3131
/>
3232

apps/playground-web/src/app/connect/pay/transactions/page.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ export default function Page() {
2727
any chain.
2828
</>
2929
}
30-
docsLink="https://portal.thirdweb.com/connect/pay/get-started"
30+
docsLink="https://portal.thirdweb.com/connect/pay/get-started?utm_source=playground"
3131
heroLink="/pay.png"
3232
/>
3333

apps/playground-web/src/app/connect/sign-in/button/LeftSection.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ export function LeftSection(props: {
219219
after connecting wallet
220220
</span>
221221
<Link
222-
href="https://portal.thirdweb.com/connect/auth"
222+
href="https://portal.thirdweb.com/connect/auth?utm_source=playground"
223223
target="_blank"
224224
className="inline-flex items-center gap-2 text-muted-foreground hover:text-foreground"
225225
>
@@ -248,7 +248,7 @@ export function LeftSection(props: {
248248
</p>
249249

250250
<Link
251-
href="https://portal.thirdweb.com/connect/account-abstraction/overview"
251+
href="https://portal.thirdweb.com/connect/account-abstraction/overview?utm_source=playground"
252252
target="_blank"
253253
className="inline-flex items-center gap-2 text-muted-foreground hover:text-foreground"
254254
>

apps/playground-web/src/app/connect/sign-in/button/page.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ export default function Page(props: {
7171
Ethereum)
7272
</>
7373
}
74-
docsLink="https://portal.thirdweb.com/connect/sign-in/overview"
74+
docsLink="https://portal.thirdweb.com/connect/sign-in/overview?utm_source=playground"
7575
heroLink="/connectors.png"
7676
/>
7777

apps/playground-web/src/app/connect/sign-in/components/InAppWalletFormGroup.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ export function InAppWalletFormGroup(props: {
3939
<Link
4040
target="_blank"
4141
className="group flex items-center gap-2"
42-
href="https://portal.thirdweb.com/connect/in-app-wallet/overview"
42+
href="https://portal.thirdweb.com/connect/in-app-wallet/overview?utm_source=playground"
4343
>
4444
<h2 className="font-semibold tracking-tight">In-App Wallet</h2>
4545
<ExternalLinkIcon className="mt-[-2px] size-4 text-muted-foreground group-hover:text-foreground" />

apps/playground-web/src/app/connect/sign-in/embed/page.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ export default function Page() {
2525
that fits your brand.
2626
</>
2727
}
28-
docsLink="https://portal.thirdweb.com/connect/sign-in/overview"
28+
docsLink="https://portal.thirdweb.com/connect/sign-in/overview?utm_source=playground"
2929
heroLink="/connectors.png"
3030
/>
3131

apps/playground-web/src/app/connect/sign-in/headless/page.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ export default function Page() {
2626
that fits your brand.
2727
</>
2828
}
29-
docsLink="https://portal.thirdweb.com/connect/sign-in/overview"
29+
docsLink="https://portal.thirdweb.com/connect/sign-in/overview?utm_source=playground"
3030
heroLink="/connectors.png"
3131
/>
3232
<Modal />

apps/playground-web/src/app/connect/social/page.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ export default function Page() {
2424
as soon as they sign into your app.
2525
</>
2626
}
27-
docsLink="https://portal.thirdweb.com/connect" // TODO: update this once we have Social API docs
27+
docsLink="https://portal.thirdweb.com/connect?utm_source=playground" // TODO: update this once we have Social API docs
2828
heroLink="/in-app-wallet.png"
2929
/>
3030

apps/playground-web/src/app/connect/ui/chain/page.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ export default function Page() {
2929
in their user interfaces.
3030
</>
3131
}
32-
docsLink="https://portal.thirdweb.com/react/v5/components/onchain#chains"
32+
docsLink="https://portal.thirdweb.com/react/v5/components/onchain#chains?utm_source=playground"
3333
heroLink="/headless-ui-header.png"
3434
/>
3535
<section className="space-y-8">

apps/playground-web/src/app/connect/ui/nft/page.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ export default function Page() {
3232
their perfect user interface.
3333
</>
3434
}
35-
docsLink="https://portal.thirdweb.com/react/v5/components/onchain#nfts"
35+
docsLink="https://portal.thirdweb.com/react/v5/components/onchain#nfts?utm_source=playground"
3636
heroLink="/headless-ui-header.png"
3737
/>
3838
<section className="space-y-8">

apps/playground-web/src/app/connect/ui/page.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ export default function Page() {
3737
complete control over your dApp&apos;s design.
3838
</>
3939
}
40-
docsLink="https://portal.thirdweb.com/react/v5/components/account"
40+
docsLink="https://portal.thirdweb.com/react/v5/components/account?utm_source=playground"
4141
heroLink="/headless-ui-header.png"
4242
/>
4343

apps/playground-web/src/app/connect/ui/token/page.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ export default function Page() {
3333
other crypto applications.
3434
</>
3535
}
36-
docsLink="https://portal.thirdweb.com/react/v5/components/onchain#tokens"
36+
docsLink="https://portal.thirdweb.com/react/v5/components/onchain#tokens?utm_source=playground"
3737
heroLink="/headless-ui-header.png"
3838
/>
3939
<section className="space-y-8">

apps/playground-web/src/app/connect/ui/wallet/page.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ export default function Page() {
3131
design.
3232
</>
3333
}
34-
docsLink="https://portal.thirdweb.com/react/v5/connecting-wallets/ui-components"
34+
docsLink="https://portal.thirdweb.com/react/v5/connecting-wallets/ui-components?utm_source=playground"
3535
heroLink="/headless-ui-header.png"
3636
/>
3737
<section className="space-y-8">

apps/playground-web/src/app/insight/layout.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ export default function Layout(props: {
1111
description={
1212
<>Simple & customizable endpoints for querying rich blockchain data</>
1313
}
14-
docsLink="https://portal.thirdweb.com/insight"
14+
docsLink="https://portal.thirdweb.com/insight?utm_source=playground"
1515
heroLink="/insight-hero.avif"
1616
/>
1717

apps/playground-web/src/app/insight/page.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ export default async function Page() {
1414
user-friendly format. <br /> There is no need for ABIs, decoding, RPC,
1515
or web3 knowledge to fetch blockchain data.{" "}
1616
<Link
17-
href="https://portal.thirdweb.com/insight/blueprints"
17+
href="https://portal.thirdweb.com/insight/blueprints?utm_source=playground"
1818
target="_blank"
1919
className="underline decoration-muted-foreground/50 decoration-dotted underline-offset-[5px] hover:decoration-solid"
2020
>

apps/playground-web/src/app/otherLinks.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
export const otherLinks: { name: string; href: string }[] = [
22
{
33
name: "Dashboard",
4-
href: "https://thirdweb.com/team",
4+
href: "https://thirdweb.com/team?utm_source=playground",
55
},
66
{
77
name: "Docs",
8-
href: "https://portal.thirdweb.com/",
8+
href: "https://portal.thirdweb.com?utm_source=playground",
99
},
1010
{
1111
name: "Github",

apps/playground-web/src/components/auth/gated-content.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ export async function GatedContentPreview() {
8282
<br />
8383
Mint a free commemorative NFT{" "}
8484
<a
85-
href="https://thirdweb.com/arbitrum/0xE7d6D628163de95D1c72c343ee852539B51f35Dc/nfts/0"
85+
href="https://thirdweb.com/arbitrum/0xE7d6D628163de95D1c72c343ee852539B51f35Dc/nfts/0?utm_source=playground"
8686
rel="noreferrer"
8787
target="_blank"
8888
className="font-bold text-yellow-400 underline"

apps/playground-web/src/components/blocks/APIHeader.tsx

+4-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,10 @@ export function APIHeader(props: {
3232
</Link>
3333
</Button>
3434
<Button asChild variant="outline" size="lg">
35-
<Link target="_blank" href="https://thirdweb.com/contact-us">
35+
<Link
36+
target="_blank"
37+
href="https://thirdweb.com/contact-us?utm_source=playground"
38+
>
3639
Book a Demo
3740
</Link>
3841
</Button>

apps/playground-web/src/components/engine/minting/erc1155-mint-to.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@ export function ERC1155MintTo() {
248248
<p className="max-w-[600px]">
249249
thirdweb Engine Playground{" "}
250250
<a
251-
href="https://thirdweb.com/base-sepolia-testnet/0x8CD193648f5D4E8CD9fD0f8d3865052790A680f6/nfts"
251+
href="https://thirdweb.com/base-sepolia-testnet/0x8CD193648f5D4E8CD9fD0f8d3865052790A680f6/nfts?utm_source=playground"
252252
target="_blank"
253253
className="text-blue-500"
254254
rel="noreferrer"

0 commit comments

Comments
 (0)