This PR adds posthog analystic tool to the T website. We want to enable the
posthog on the production build only so here we pass the
POSTHOG_SUPPORT: true env variable in CI during the production build.
How to test the posthog locally?
Update the posthog plugin config in gatsby-config.ts file:
This PR adds posthog analystic tool to the T website. We want to enable the posthog on the production build only so here we pass the
POSTHOG_SUPPORT: true
env variable in CI during the production build.How to test the posthog locally?
gatsby-config.ts
file:POSTHOG_API_KEY=<api_key> POSTHOG_HOSTNAME_HTTP=https://app.posthog.com/ POSTHOG_SUPPORT=true yarn start