feat: Add an analytics module and local and posthog providers (#12505)

* feat: Add an analytics module and local and posthog providers

* fix: Add tests and wire up in missing places

* fix: Address feedback and add missing module typing

* fix: Address feedback and add missing module typing

---------

Co-authored-by: Adrien de Peretti <adrien.deperetti@gmail.com>
Co-authored-by: Oli Juhl <59018053+olivermrbl@users.noreply.github.com>
This commit is contained in:
Stevche Radevski
2025-05-19 19:57:13 +02:00
committed by GitHub
co-authored by Adrien de Peretti Oli Juhl
parent 52bd9f9a53
commit b9a51e217d
49 changed files with 1009 additions and 0 deletions
@@ -0,0 +1,6 @@
import AnalyticsLocalModule from "@medusajs/analytics-local"
export * from "@medusajs/analytics-local"
export default AnalyticsLocalModule
export const discoveryPath = require.resolve("@medusajs/analytics-local")
@@ -0,0 +1,6 @@
import AnalyticsPosthogModule from "@medusajs/analytics-posthog"
export * from "@medusajs/analytics-posthog"
export default AnalyticsPosthogModule
export const discoveryPath = require.resolve("@medusajs/analytics-posthog")
+6
View File
@@ -0,0 +1,6 @@
import AnalyticsModule from "@medusajs/analytics"
export * from "@medusajs/analytics"
export default AnalyticsModule
export const discoveryPath = require.resolve("@medusajs/analytics")