Skip to content

armgit / kaneo

Public Imported from GitHub
0

⚡ Project management that doesn't become the project. Boards, Gantt charts, and GitHub integration. Self-host it or use Kaneo Cloud.

feat: add Plausible analytics scripts for tracking

Andrej736791a04cee
diff --git a/apps/docs/docs.json b/apps/docs/docs.json
index 4fb75ba70..0e7bd2402 100644
--- a/apps/docs/docs.json
+++ b/apps/docs/docs.json
@@ -141,11 +141,11 @@
},
"seo": {
"indexing": "all"
- },
- "integrations": {
- "plausible": {
- "domain": "kaneo.app/docs",
- "server": "plausible.kaneo.app"
- }
- }
+ },
+ "integrations": {
+ "plausible": {
+ "domain": "kaneo.app/docs",
+ "server": "plausible.kaneo.app"
+ }
+ }
}
diff --git a/apps/site/app/layout.tsx b/apps/site/app/layout.tsx
index 1b3941e7c..02eb0f3cc 100644
--- a/apps/site/app/layout.tsx
+++ b/apps/site/app/layout.tsx
@@ -1,4 +1,5 @@
import type { Metadata } from "next";
+import Script from "next/script";
import "./globals.css";
export const metadata: Metadata = {
@@ -85,6 +86,17 @@ export default function RootLayout({
}}
/>
{children}
+ <Script
+ defer
+ data-domain="kaneo.app"
+ src="https://plausible.kaneo.app/js/script.file-downloads.hash.outbound-links.pageview-props.revenue.tagged-events.js"
+ strategy="afterInteractive"
+ />
+ <Script id="plausible-init" strategy="afterInteractive">
+ {
+ "window.plausible = window.plausible || function() { (window.plausible.q = window.plausible.q || []).push(arguments) }"
+ }
+ </Script>
</body>
</html>
);
diff --git a/apps/site/components/landing/app-preview/index.tsx b/apps/site/components/landing/app-preview/index.tsx
index d68c2e96a..6cb315b3b 100644
--- a/apps/site/components/landing/app-preview/index.tsx
+++ b/apps/site/components/landing/app-preview/index.tsx
@@ -45,7 +45,6 @@ import {
} from "@/components/ui/sidebar";
import { useTaskFilters } from "@/hooks/use-task-filters";
import { cn } from "@/lib/utils";
-import type Task from "@/types/task";
import {
MOCK_PROJECTS,
MOCK_USERS,