1
0
mirror of https://github.com/tabler/tabler.git synced 2026-06-17 12:50:03 +04:00

init posthog stats

This commit is contained in:
codecalm
2025-09-23 22:19:25 +02:00
parent 4b65380293
commit 7b74fee012
4 changed files with 40 additions and 2 deletions
+4
View File
@@ -264,6 +264,10 @@ export default function (eleventyConfig) {
eleventyConfig.addGlobalData("environment", environment);
eleventyConfig.addGlobalData("package", pkg);
eleventyConfig.addGlobalData("cdnUrl", `https://cdn.jsdelivr.net/npm/@tabler/core@${pkg.version}`);
// PostHog Analytics Environment Variables
eleventyConfig.addGlobalData("posthogApiKey", process.env.POSTHOG_API_KEY || "");
eleventyConfig.addGlobalData("posthogHost", process.env.POSTHOG_HOST || "https://us.i.posthog.com");
const data = {
iconsCount: () => 123,