mirror of
https://github.com/lucide-icons/lucide.git
synced 2026-11-15 14:08:49 +00:00
feat(docs): add OpenPanel analytics alongside Plausible (#5063)
Track page views (initial load + client-side navigations) with the @openpanel/web SDK, sending to the self-hosted instance at insights.lucide.dev. This mirrors what the current Plausible script tracks; Plausible stays in place for the icon popularity script. Page views are sent from VitePress' onAfterRouteChange hook (after nextTick) so the page title is already updated. Tracking only runs in the browser and only when VITE_OPENPANEL_CLIENT_ID is set at build time. The SDK is bundled from npm instead of loading op1.js, which EasyPrivacy blocks; insights.lucide.dev/api/track matches no rule in the current EasyList/EasyPrivacy, uBlock Origin or Brave lists. Claude-Session: https://claude.ai/code/session_01AZuxmXLjrs29erwQcePCnX Co-authored-by: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -62,6 +62,7 @@
|
||||
"@floating-ui/vue": "^2.0.1",
|
||||
"@headlessui/vue": "^1.7.23",
|
||||
"@lucide/vue": "workspace:*",
|
||||
"@openpanel/web": "^1.4.2",
|
||||
"@vueuse/components": "^14.4.0",
|
||||
"@vueuse/core": "^14.4.0",
|
||||
"@vueuse/integrations": "^14.4.0",
|
||||
|
||||
Reference in New Issue
Block a user