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.

wip

Kiran Kdefdf22f2bcf
diff --git a/apps/web/guides/gtm.md b/apps/web/guides/gtm.md
new file mode 100644
index 0000000000..e69de29bb2
diff --git a/apps/web/ui/guides/integrations.ts b/apps/web/ui/guides/integrations.ts
index ebd4046935..7cc7e47bc2 100644
--- a/apps/web/ui/guides/integrations.ts
+++ b/apps/web/ui/guides/integrations.ts
@@ -4,6 +4,7 @@ import { BetterAuth } from "@/ui/layout/sidebar/conversions/icons/better-auth";
import { Clerk } from "@/ui/layout/sidebar/conversions/icons/clerk";
import { CodeEditor } from "@/ui/layout/sidebar/conversions/icons/code-editor";
import { Framer } from "@/ui/layout/sidebar/conversions/icons/framer";
+import { GoogleTagManager } from "@/ui/layout/sidebar/conversions/icons/gtm";
import { NextAuth } from "@/ui/layout/sidebar/conversions/icons/next-auth";
import { React } from "@/ui/layout/sidebar/conversions/icons/react";
import { Segment } from "@/ui/layout/sidebar/conversions/icons/segment";
@@ -148,6 +149,13 @@ export const guides: IntegrationGuide[] = [
icon: Segment,
url: "https://dub.co/docs/conversions/leads/segment",
},
+ {
+ type: "track-lead",
+ key: "gtm-track-lead",
+ title: "Google Tag Manager",
+ icon: GoogleTagManager,
+ url: "https://dub.co/docs/conversions/leads/google-tag-manager",
+ },
{
type: "track-lead",
key: "manual-track-lead",
@@ -193,6 +201,13 @@ export const guides: IntegrationGuide[] = [
icon: Segment,
url: "https://dub.co/docs/conversions/sales/segment",
},
+ {
+ type: "track-sale",
+ key: "gtm-track-sale",
+ title: "Google Tag Manager",
+ icon: GoogleTagManager,
+ url: "https://dub.co/docs/conversions/sales/google-tag-manager",
+ },
{
type: "track-sale",
key: "manual-track-sale",
diff --git a/apps/web/ui/layout/sidebar/conversions/icons/gtm.tsx b/apps/web/ui/layout/sidebar/conversions/icons/gtm.tsx
new file mode 100644
index 0000000000..c30d88bc71
--- /dev/null
+++ b/apps/web/ui/layout/sidebar/conversions/icons/gtm.tsx
@@ -0,0 +1,30 @@
+import { SVGProps } from "react";
+
+export function GoogleTagManager(props: SVGProps<SVGSVGElement>) {
+ return (
+ <svg
+ width="40"
+ height="40"
+ viewBox="0 0 256 256"
+ xmlns="http://www.w3.org/2000/svg"
+ preserveAspectRatio="xMidYMid"
+ {...props}
+ >
+ <g>
+ <polygon
+ fill="#8AB4F8"
+ points="150.261818 245.516364 105.825455 202.185455 201.258182 104.730909 247.265455 149.821818"
+ />
+ <path
+ fill="#4285F4"
+ d="M150.450909,53.9381818 L106.174545,8.73090909 L9.36,104.629091 C-3.12,117.109091 -3.12,137.341818 9.36,149.836364 L104.72,245.821818 L149.810909,203.64 L77.1563636,127.232727 L150.450909,53.9381818 Z"
+ />
+ <path
+ fill="#8AB4F8"
+ d="M246.625455,105.370909 L150.625455,9.37090909 C138.130909,-3.12363636 117.869091,-3.12363636 105.374545,9.37090909 C92.88,21.8654545 92.88,42.1272727 105.374545,54.6218182 L201.374545,150.621818 C213.869091,163.116364 234.130909,163.116364 246.625455,150.621818 C259.12,138.127273 259.12,117.865455 246.625455,105.370909 Z"
+ />
+ <circle fill="#246FDB" cx="127.265455" cy="224.730909" r="31.2727273" />
+ </g>
+ </svg>
+ );
+}