Skip to main content

posthog-analytics

Enables product analytics with PostHog for event tracking, user identification, and feature flags to enhance decision-making.

Install this skill

or
75/100

Security score

The posthog-analytics skill was audited on Jun 8, 2026 and we found 21 security issues across 3 threat categories. Review the findings below before installing.

Categories Tested

Security Issues

medium line 85

Template literal with variable interpolation in command context

SourceSKILL.md
85url += `?${searchParams.toString()}`;
low line 46

Access to .env file

SourceSKILL.md
46posthog.init(process.env.NEXT_PUBLIC_POSTHOG_KEY!, {
low line 47

Access to .env file

SourceSKILL.md
47api_host: process.env.NEXT_PUBLIC_POSTHOG_HOST || 'https://us.i.posthog.com',
low line 52

Access to .env file

SourceSKILL.md
52if (process.env.NODE_ENV === 'development') {
low line 118

Access to .env file

SourceSKILL.md
118posthog.init(import.meta.env.VITE_POSTHOG_KEY, {
low line 119

Access to .env file

SourceSKILL.md
119api_host: import.meta.env.VITE_POSTHOG_HOST || 'https://us.i.posthog.com',
low line 180

Access to .env file

SourceSKILL.md
180const posthog = new PostHog(process.env.POSTHOG_API_KEY!, {
low line 181

Access to .env file

SourceSKILL.md
181host: process.env.POSTHOG_HOST || 'https://us.i.posthog.com',
low line 211

Access to .env file

SourceSKILL.md
211# .env.local (Next.js) - SAFE: These are meant to be public
low line 215

Access to .env file

SourceSKILL.md
215# .env (Backend) - Keep private
low line 499

Access to .env file

SourceSKILL.md
499const posthog = new PostHog(process.env.POSTHOG_API_KEY!);
low line 819

Access to .env file

SourceSKILL.md
819if (process.env.NODE_ENV === 'development') {
low line 874

Access to .env file

SourceSKILL.md
874if (process.env.NODE_ENV === 'development') {
low line 888

Access to .env file

SourceSKILL.md
888if (process.env.NODE_ENV === 'development') {
low line 14

External URL reference

SourceSKILL.md
14**Sources:** [PostHog Docs](https://posthog.com/docs) | [Product Analytics](https://posthog.com/docs/product-analytics) | [Feature Flags](https://posthog.com/docs/feature-flags)
low line 47

External URL reference

SourceSKILL.md
47api_host: process.env.NEXT_PUBLIC_POSTHOG_HOST || 'https://us.i.posthog.com',
low line 119

External URL reference

SourceSKILL.md
119api_host: import.meta.env.VITE_POSTHOG_HOST || 'https://us.i.posthog.com',
low line 152

External URL reference

SourceSKILL.md
152posthog.host = os.environ.get("POSTHOG_HOST", "https://us.i.posthog.com")
low line 181

External URL reference

SourceSKILL.md
181host: process.env.POSTHOG_HOST || 'https://us.i.posthog.com',
low line 213

External URL reference

SourceSKILL.md
213NEXT_PUBLIC_POSTHOG_HOST=https://us.i.posthog.com
low line 217

External URL reference

SourceSKILL.md
217POSTHOG_HOST=https://us.i.posthog.com
Scanned on Jun 8, 2026
View Security Dashboard
Installation guide →