Site Traffic Analytics


To enable configure analytics, update the config/settings/base.py settings file:

Posthog Analytics

Posthog is a privacy focused analytics app written in django.

This is an open source project which includes self hosted deployments. We highly recommend it.

POSTHOG_ANALYTICS_ENABLED = env("POSTHOG_ANALYTICS_ENABLED", default=False)
POSTHOG_ANALYTICS_API_KEY = env("POSTHOG_ANALYTICS_API_KEY", default="your_key")
POSTHOG_ANALYTICS_HOST = env("POSTHOG_ANALYTICS_HOST", default="your_host")

Google Analytics

GOOGLE_ANALYTICS_ID = 'UA-XXXXXXX-1' 
GOOGLE_ANALYTICS_DASHBOARD_LINK = env(
    "GOOGLE_ANALYTICS_DASHBOARD_LINK",
    default="https://analytics.google.com/analytics/web/",
)
GOOGLE_ANALYTICS_ENABLED = env("GOOGLE_ANALYTICS_ENABLED", default=False)
GOOGLE_ANALYTICS_ID = env("GOOGLE_ANALYTICS_ID", default="your_ID")
GOOGLE_ANALYTICS_PROPERTY_ID = env("GOOGLE_ANALYTICS_PROPERTY_ID", default="your_id")

Copyright © 2022 www.advantch.com