Skip to content

Commit

Permalink
added book-demo button as main CTA (#430)
Browse files Browse the repository at this point in the history
  • Loading branch information
joshtwist authored Nov 12, 2024
1 parent c38189e commit 766578c
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 5 deletions.
8 changes: 4 additions & 4 deletions src/components/header/Header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import { ThemeSelector } from "@/components/ThemeSelector";
import { MenuPopoverItem } from "./MenuPopoverItem";
import { data } from "./data";
import { trackEvent } from "@/lib/utils/analytics";
import { signUpLink } from "@/lib/links";
import { bookDemoLink, signUpLink } from "@/lib/links";
export default function Header() {
const currentPath = usePathname();
let [isScrolled, setIsScrolled] = useState(false);
Expand Down Expand Up @@ -79,16 +79,16 @@ export default function Header() {
</div>
<ThemeSelector className="relative z-10" />
<Link
href="https://portal.zuplo.com/signup"
href="https://book.zuplo.com"
onClick={() => {
trackEvent({
eventName: signUpLink.event ?? "start-free-cta-clicked",
eventName: bookDemoLink.event ?? "book-demo-cta-clicked",
eventData: { placement: "docs-header" },
});
}}
className="btn btn-primary-dark font-sans bg-pink block hidden whitespace-nowrap rounded-lg px-5 py-3 text-center text-sm font-semibold tracking-wider text-white no-underline transition-colors hover:bg-white hover:text-black md:inline-block"
>
{signUpLink.name}
{bookDemoLink.name}
</Link>
</div>
</div>
Expand Down
3 changes: 2 additions & 1 deletion src/lib/interfaces.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,4 +51,5 @@ export interface LinksCategory {
export type EventName =
| "sign-in-clicked"
| "start-free-cta-clicked"
| "pricing-clicked";
| "pricing-clicked"
| "book-demo-cta-clicked";
6 changes: 6 additions & 0 deletions src/lib/links.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,12 @@ export const signInLink: LinkData = {
event: "sign-in-clicked",
};

export const bookDemoLink: LinkData = {
href: "https://book.zuplo.com/",
name: "Book Demo",
event: "book-demo-cta-clicked",
};

export const signUpLink: LinkData = {
href: "https://portal.zuplo.com/",
name: "Start for Free",
Expand Down

0 comments on commit 766578c

Please sign in to comment.