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.

track conversions

Steven Tey918c34c6d802
diff --git a/components/layout/app/pro-banner.tsx b/components/layout/app/pro-banner.tsx
index 0a3e0ff9b1..c9d0f6aee3 100644
--- a/components/layout/app/pro-banner.tsx
+++ b/components/layout/app/pro-banner.tsx
@@ -2,6 +2,7 @@ import Link from "next/link";
import { useRouter } from "next/router";
import Cookies from "js-cookie";
import { Dispatch, SetStateAction } from "react";
+import va from "@vercel/analytics";
export default function ProBanner({
setShowProBanner,
@@ -22,6 +23,7 @@ export default function ProBanner({
<button
onClick={() => {
setShowProBanner(false);
+ va.track("Hid Pro Banner");
Cookies.set("hideProBanner", true, { expires: 7 });
}}
className="w-full rounded-md border border-gray-300 p-2 text-center text-sm font-medium text-gray-500 transition-all hover:border-gray-700 hover:text-gray-600"
@@ -30,6 +32,9 @@ export default function ProBanner({
</button>
<Link
href={`/${slug}/settings/billing`}
+ onClick={() => {
+ va.track("Clicked on Pro Banner");
+ }}
className="w-full rounded-md border border-black bg-black p-2 text-center text-sm font-medium text-white transition-all hover:bg-white hover:text-black"
>
Upgrade