mirror of
https://github.com/XFox111/TabsAsideExtension.git
synced 2026-04-22 07:58:01 +03:00
Major 3.0 (#118)
Co-authored-by: Maison da Silva <maisonmdsgreen@hotmail.com>
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
import { googleAnalytics4 } from "@wxt-dev/analytics/providers/google-analytics-4";
|
||||
import { WxtAppConfig } from "wxt/sandbox";
|
||||
import { userPropertiesStorage } from "./features/analytics";
|
||||
|
||||
export default defineAppConfig({
|
||||
analytics:
|
||||
{
|
||||
debug: import.meta.env.DEV,
|
||||
enabled: storage.defineItem("local:analytics", {
|
||||
fallback: true
|
||||
}),
|
||||
userId: storage.defineItem("local:userId", {
|
||||
init: () => crypto.randomUUID()
|
||||
}),
|
||||
userProperties: userPropertiesStorage,
|
||||
providers:
|
||||
[
|
||||
googleAnalytics4({
|
||||
apiSecret: import.meta.env.WXT_GA4_API_SECRET,
|
||||
measurementId: import.meta.env.WXT_GA4_MEASUREMENT_ID
|
||||
})
|
||||
]
|
||||
}
|
||||
} as WxtAppConfig);
|
||||
Reference in New Issue
Block a user