Skip to content

Commit 4ad6b35

Browse files
committed
embedded referral dashboard
1 parent 8d41a5e commit 4ad6b35

File tree

5 files changed

+38
-23
lines changed

5 files changed

+38
-23
lines changed

conversions/sales/google-tag-manager.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ description: "Learn how to track sales conversion events with Google Tag Manager
55
og:image: https://assets.dub.co/cms/gtm-integration.jpeg
66
---
77

8-
import SalesAttributes from "/snippets/sales-attributes.mdx";
8+
import SalesAttributes from "/snippets/sale-attributes.mdx";
99
import ViewConversions from "/snippets/view-conversions.mdx";
1010

1111
<Note>

docs.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@
8585
},
8686
{
8787
"group": "Dub Partners",
88-
"pages": ["partners/quickstart", "partners/white-labeling"]
88+
"pages": ["partners/quickstart", "partners/embedded-referrals"]
8989
},
9090
{
9191
"group": "Integrations",
@@ -302,6 +302,10 @@
302302
}
303303
},
304304
"redirects": [
305+
{
306+
"source": "/partners/white-labeling",
307+
"destination": "/partners/embedded-referrals"
308+
},
305309
{
306310
"source": "/sdks",
307311
"destination": "/sdks/overview"

partners/embedded-referrals.mdx

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
---
2+
title: Embedded referral dashboard
3+
og:title: "How to create an embedded referral dashboard with Dub Partners"
4+
description: "Learn how to create an embedded referral dashboard with Dub for your users to join your partner program without leaving your app."
5+
---
6+
7+
<Note>
8+
Embedded referral dashboards require an [Advanced
9+
plan](https://dub.co/pricing) subscription or higher.
10+
</Note>
11+
12+
import ReferralsEmbedGuide from "/snippets/referrals-embed-guide.mdx";
13+
14+
<ReferralsEmbedGuide />

partners/white-labeling.mdx

Lines changed: 0 additions & 14 deletions
This file was deleted.

snippets/referrals-embed-guide.mdx

Lines changed: 18 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,23 @@
1-
With [Dub Partners](https://dub.co/partners), you can build a white-labeled referral dashboard that lives directly inside your app in just a few lines of code.
1+
With [Dub Partners](https://dub.co/partners), you can build an embedded referral dashboard that lives directly inside your application in just a few lines of code.
22

33
This way, your users can automatically enroll in your partner program **without needing to leave your app and sign up on a third-party platform**.
44

5-
In this guide, we'll walk you through the steps to get started with the Dub Referrals Embed.
5+
<Frame>
6+
<video
7+
src="https://assets.dub.co/cms/dub-partners-whitelabeled-embed.mp4"
8+
autoPlay
9+
loop
10+
muted
11+
controls
12+
playsInline
13+
/>
14+
</Frame>
15+
16+
In this guide, we'll walk you through the steps to get started with Dub's embedded referral dashboard feature.
617

718
## Example App
819

9-
Before we dive in, here's an open-source example app showing the Dub Referrals Embed in action: [acme.dub.sh](https://acme.dub.sh)
20+
Before we dive in, here's an open-source example app showing Dub's embedded referral dashboard in action: [acme.dub.sh](https://acme.dub.sh)
1021

1122
<Frame>
1223
<video
@@ -22,7 +33,7 @@ Before we dive in, here's an open-source example app showing the Dub Referrals E
2233
You can also view the source code for the example app on [GitHub](https://github.com/dubinc/examples/tree/main/embed/referrals):
2334

2435
<Card
25-
title="Dub Referrals Embed Demo App"
36+
title="Dub embedded referral dashboard demo app"
2637
icon="github"
2738
href="https://github.com/dubinc/examples/tree/main/embed/referrals"
2839
color="#333333"
@@ -32,7 +43,7 @@ You can also view the source code for the example app on [GitHub](https://github
3243

3344
## Step 1: Generate embed token
3445

35-
First, you need to create a server API route that generates a public token, which will be used by the Dub Referrals Embed to fetch real-time conversions and earnings data from the client-side.
46+
First, you need to create a server API route that generates a public token, which will be used by the embedded referral dashboard to fetch real-time conversions and earnings data from the client-side.
3647

3748
<Frame>
3849
<img
@@ -203,7 +214,7 @@ Refer to the [full API reference](/api-reference/endpoint/create-referrals-embed
203214

204215
## Step 2: Install the embed
205216

206-
Then, with the `publicToken` from Step 1, you can install and initialize the Dub Referrals Embed. There are two ways to do this:
217+
Then, with the `publicToken` from Step 1, you can install and initialize the embedded referral dashboard. There are two ways to do this:
207218

208219
### React component
209220

@@ -294,7 +305,7 @@ export default function App() {
294305

295306
## Embed options
296307

297-
The Dub Referrals Embed supports the following options for styling and behavior:
308+
The embedded referral dashboard supports the following options for styling and behavior:
298309

299310
<ParamField body="data" type="referrals | analytics" required>
300311
The type of embed to use. In this case, we're using the `referrals` type.

0 commit comments

Comments
 (0)