Merge commit '7fa442fb28a2b9156690ff147206275163e7aec8' into beta

This commit is contained in:
2025-10-19 06:50:50 +03:00
1007 changed files with 143497 additions and 11362 deletions

View File

@@ -1,24 +1,24 @@
import { posthog } from 'posthog-js'
// import { posthog } from 'posthog-js'
export const initAnalytics = () => {
posthog.init('phc_9Iqi6lFs9sr5BSqh9RRNRSJ0mATS9PSgirDiX3iOYJ', {
persistence: 'localStorage',
api_host: 'https://posthog.modrinth.com',
})
// posthog.init('phc_9Iqi6lFs9sr5BSqh9RRNRSJ0mATS9PSgirDiX3iOYJ', {
// persistence: 'localStorage',
// api_host: 'https://posthog.modrinth.com',
// })
}
export const debugAnalytics = () => {
posthog.debug()
// posthog.debug()
}
export const optOutAnalytics = () => {
posthog.opt_out_capturing()
// posthog.opt_out_capturing()
}
export const optInAnalytics = () => {
posthog.opt_in_capturing()
// posthog.opt_in_capturing()
}
export const trackEvent = (eventName, properties) => {
posthog.capture(eventName, properties)
// posthog.capture(eventName, properties)
}