Skip to content

Commit

Permalink
Step 4: Adding a custom event
Browse files Browse the repository at this point in the history
  • Loading branch information
colbyfayock committed Apr 12, 2024
1 parent bad7186 commit 572be30
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions app/page.tsx
@@ -1,8 +1,16 @@
"use client";
import { usePlausible } from 'next-plausible'
import Image from "next/image";

export default function Home() {
const plausible = usePlausible();
return (
<main className="flex min-h-screen flex-col items-center justify-between p-24">
<p>
<button onClick={() => plausible('myEvent')}>
Track me!
</button>
</p>
<div className="z-10 w-full max-w-5xl items-center justify-between font-mono text-sm lg:flex">
<p className="fixed left-0 top-0 flex w-full justify-center border-b border-gray-300 bg-gradient-to-b from-zinc-200 pb-6 pt-8 backdrop-blur-2xl dark:border-neutral-800 dark:bg-zinc-800/30 dark:from-inherit lg:static lg:w-auto lg:rounded-xl lg:border lg:bg-gray-200 lg:p-4 lg:dark:bg-zinc-800/30">
Get started by editing&nbsp;
Expand Down

0 comments on commit 572be30

Please sign in to comment.