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.

Hide site verification

Tim Wilson1e1b7135ecae
diff --git a/apps/web/app/app.dub.co/(dashboard)/[slug]/(ee)/settings/analytics/page.tsx b/apps/web/app/app.dub.co/(dashboard)/[slug]/(ee)/settings/analytics/page.tsx
index 475868a25e..cc06d4e453 100644
--- a/apps/web/app/app.dub.co/(dashboard)/[slug]/(ee)/settings/analytics/page.tsx
+++ b/apps/web/app/app.dub.co/(dashboard)/[slug]/(ee)/settings/analytics/page.tsx
@@ -13,12 +13,19 @@ import OutboundDomainTrackingSection from "./outbound-domain-tracking-section";
import Step, { BaseStepProps } from "./step";
import TrackLeadsGuidesSection from "./track-lead-guides-section";
import TrackSalesGuidesSection from "./track-sales-guides-section";
-import VerifyInstall from "./verify-install";
-const ConnectStep = ({ expanded, toggleExpanded }: BaseStepProps) => {
+const ConnectStep = ({
+ expanded,
+ toggleExpanded,
+ onComplete,
+}: BaseStepProps & { onComplete: () => void }) => {
const { searchParams } = useRouterStuff();
const guide = searchParams.get("guide");
+ const [complete, markComplete, { loading }] = useWorkspaceStore<boolean>(
+ "analyticsSettingsConnectionSetupComplete",
+ );
+
return (
<Step
id="connect"
@@ -27,6 +34,7 @@ const ConnectStep = ({ expanded, toggleExpanded }: BaseStepProps) => {
subtitle="Select scripts to enable page, conversion, and outbound tracking"
expanded={expanded}
toggleExpanded={toggleExpanded}
+ complete={complete}
contentClassName="flex flex-col gap-8"
>
<div
@@ -60,7 +68,16 @@ const ConnectStep = ({ expanded, toggleExpanded }: BaseStepProps) => {
<ConnectionInstructions />
</div>
- <VerifyInstall />
+ {!complete && (
+ <CompleteStepButton
+ onClick={() => {
+ markComplete(true);
+ onComplete();
+ }}
+ loading={loading}
+ />
+ )}
+ {/* <VerifyInstall /> */}
</Step>
);
};
@@ -175,6 +192,7 @@ export default function WorkspaceAnalytics() {
<ConnectStep
expanded={expandedStep === "connect"}
toggleExpanded={() => toggleStep("connect")}
+ onComplete={() => closeStep("connect")}
/>
<LeadEventsStep
expanded={expandedStep === "lead"}