You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: snippets/referrals-embed-guide.mdx
+18-7Lines changed: 18 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff 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.
2
2
3
3
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**.
4
4
5
-
In this guide, we'll walk you through the steps to get started with the Dub Referrals Embed.
@@ -32,7 +43,7 @@ You can also view the source code for the example app on [GitHub](https://github
32
43
33
44
## Step 1: Generate embed token
34
45
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.
36
47
37
48
<Frame>
38
49
<img
@@ -203,7 +214,7 @@ Refer to the [full API reference](/api-reference/endpoint/create-referrals-embed
203
214
204
215
## Step 2: Install the embed
205
216
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:
207
218
208
219
### React component
209
220
@@ -294,7 +305,7 @@ export default function App() {
294
305
295
306
## Embed options
296
307
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:
0 commit comments