Skip to content

armgit / dub

Public Imported from GitHub
0

The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.

update the guides list

Kiran K2d4270d6432a
diff --git a/apps/web/app/(ee)/app.dub.co/(new-program)/[slug]/program/new/connect/guide-list.tsx b/apps/web/app/(ee)/app.dub.co/(new-program)/[slug]/program/new/connect/guide-list.tsx
index 6dac2b21f4..5df6183073 100644
--- a/apps/web/app/(ee)/app.dub.co/(new-program)/[slug]/program/new/connect/guide-list.tsx
+++ b/apps/web/app/(ee)/app.dub.co/(new-program)/[slug]/program/new/connect/guide-list.tsx
@@ -15,7 +15,7 @@ export function GuideList() {
const [hasSubmitted, setHasSubmitted] = useState(false);
const { id: workspaceId, slug: workspaceSlug, mutate } = useWorkspace();
const [integrationType, setIntegrationType] =
- useState<IntegrationType>("no-code");
+ useState<IntegrationType>("client-sdk");
const { executeAsync, isPending } = useAction(onboardProgramAction, {
onSuccess: () => {
@@ -79,9 +79,12 @@ export function GuideList() {
<div className="text-sm font-semibold text-[##171717]">
{guide.title}
</div>
- <div className="text-sm font-medium text-[#737373]">
- {guide.shortDescription}
- </div>
+
+ {guide.description && (
+ <div className="text-sm font-medium text-[#737373]">
+ {guide.description}
+ </div>
+ )}
</div>
</Link>
))}
diff --git a/apps/web/app/(ee)/app.dub.co/(new-program)/[slug]/program/new/connect/integration-guides.ts b/apps/web/app/(ee)/app.dub.co/(new-program)/[slug]/program/new/connect/integration-guides.ts
index bac6f63ac0..abd34c9223 100644
--- a/apps/web/app/(ee)/app.dub.co/(new-program)/[slug]/program/new/connect/integration-guides.ts
+++ b/apps/web/app/(ee)/app.dub.co/(new-program)/[slug]/program/new/connect/integration-guides.ts
@@ -5,124 +5,169 @@ import { Stripe } from "@/ui/layout/sidebar/conversions/icons/stripe";
import { Supabase } from "@/ui/layout/sidebar/conversions/icons/supabase";
import { Code, Framer, Globe } from "lucide-react";
-export type IntegrationType = "no-code" | "code";
+export type IntegrationType =
+ | "client-sdk"
+ | "server-sdk"
+ | "track-leads"
+ | "track-sales";
export type IntegrationGuide = {
type: IntegrationType;
key: string;
title: string;
- description: string;
- shortDescription: string;
+ description?: string;
icon: any;
recommended?: boolean;
content?: string;
};
export const guides: IntegrationGuide[] = [
+ // Client SDK
{
- type: "code",
+ type: "client-sdk",
key: "react",
title: "React",
- description: "How to add @dub/analytics to your React or Next.js site",
- shortDescription: "Dub Analytics",
icon: Code,
},
{
- type: "no-code",
- key: "webflow",
- title: "Webflow",
- description: "How to add @dub/analytics to your Webflow site",
- shortDescription: "Dub Analytics",
- icon: Globe,
+ type: "client-sdk",
+ key: "framer",
+ title: "Framer",
+ icon: Framer,
},
{
- type: "code",
+ type: "client-sdk",
key: "wordpress",
title: "WordPress",
- description: "How to add @dub/analytics to your WordPress site",
- shortDescription: "Dub Analytics",
icon: Code,
},
{
- type: "no-code",
- key: "framer",
- title: "Framer",
- description: "How to add @dub/analytics to your Framer site",
- shortDescription: "Dub Analytics",
- icon: Framer,
+ type: "client-sdk",
+ key: "webflow",
+ title: "Webflow",
+ icon: Globe,
},
{
- type: "no-code",
+ type: "client-sdk",
key: "shopify",
title: "Shopify",
- description: "How to add @dub/analytics to your Shopify store",
- shortDescription: "Track sales",
icon: Shopify,
},
{
- type: "no-code",
- key: "stripe",
- title: "Stripe",
- description: "How to add @dub/analytics to your Stripe store",
- shortDescription: "Track sales",
- icon: Stripe,
+ type: "client-sdk",
+ key: "manual",
+ title: "Manual",
+ icon: Code,
+ },
+
+ // Server SDK
+ {
+ type: "server-sdk",
+ key: "typescript",
+ title: "TypeScript",
+ icon: Code,
},
{
- type: "code",
+ type: "server-sdk",
+ key: "golang",
+ title: "Go",
+ icon: Code,
+ },
+ {
+ type: "server-sdk",
+ key: "python",
+ title: "Python",
+ icon: Code,
+ },
+ {
+ type: "server-sdk",
+ key: "ruby",
+ title: "Ruby",
+ icon: Code,
+ },
+ {
+ type: "server-sdk",
+ key: "php",
+ title: "PHP",
+ icon: Code,
+ },
+ {
+ type: "server-sdk",
+ key: "rest",
+ title: "REST API",
+ icon: Code,
+ },
+
+ // Track Leads
+ {
+ type: "track-leads",
key: "clerk",
title: "Clerk",
- description: "Track lead conversion events with Clerk and Dub",
- shortDescription: "Track leads",
icon: Clerk,
},
{
- type: "code",
+ type: "track-leads",
key: "betterauth",
title: "Better Auth",
- description: "Track lead conversion events with Better Auth and Dub",
- shortDescription: "Track leads",
icon: BetterAuth,
},
{
- type: "code",
+ type: "track-leads",
key: "nextauth",
title: "NextAuth.js",
- description: "Track lead conversion events with NextAuth and Dub",
- shortDescription: "Track leads",
icon: Code,
},
{
- type: "code",
+ type: "track-leads",
key: "supabase",
title: "Supabase",
- description:
- "Learn how to track lead conversion events with Supabase and Dub",
- shortDescription: "Track leads",
icon: Supabase,
},
{
- type: "code",
+ type: "track-leads",
key: "auth0",
title: "Auth0",
- description: "Learn how to track lead conversion events with Auth0 and Dub",
- shortDescription: "Track leads",
icon: Code,
},
{
- type: "code",
+ type: "track-leads",
key: "appwrite",
title: "Appwrite",
- description:
- "Learn how to track lead conversion events with Appwrite and Dub",
- shortDescription: "Track leads",
icon: Code,
},
{
- type: "code",
- key: "manual",
- title: "Manual",
- description: "How to add @dub/analytics to your site",
- shortDescription: "Dub Analytics",
+ type: "track-leads",
+ key: "segment-track-leads",
+ title: "Segment",
+ icon: Code,
+ },
+
+ // Track Sales
+ {
+ type: "track-sales",
+ key: "stripe-checkout",
+ title: "Stripe",
+ description: "Checkout",
+ icon: Stripe,
+ },
+ {
+ type: "track-sales",
+ key: "stripe-payment-links",
+ title: "Stripe",
+ description: "Payment Links",
+ icon: Stripe,
+ },
+ {
+ type: "track-sales",
+ key: "stripe",
+ title: "Stripe",
+ description: "Customers",
+ icon: Stripe,
+ },
+ {
+ type: "track-sales",
+ key: "segment-track-sales",
+ title: "Segment",
icon: Code,
},
];