Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions apps/docs/app/api/[...op]/route.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import { createRouteHandler } from "@openpanel/nextjs/server"

export const { GET, POST } = createRouteHandler()
2 changes: 2 additions & 0 deletions apps/docs/components/analytics.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ export function Analytics() {
return (
<OpenPanelComponent
clientId={process.env.NEXT_PUBLIC_OPENPANEL_CLIENT_ID ?? ""}
apiUrl="/api/op"
scriptUrl="/api/op/op1.js"
trackScreenViews
trackOutgoingLinks
trackAttributes
Expand Down
Loading