Skip to main content

posthog-analytics

Enables product analytics with PostHog for event tracking, user identification, and custom dashboards to drive informed decisions.

Install this skill

or
75/100

Security score

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

Categories Tested

Security Issues

medium line 83

Template literal with variable interpolation in command context

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

Access to .env file

SourceSKILL.md
44posthog.init(process.env.NEXT_PUBLIC_POSTHOG_KEY!, {
low line 45

Access to .env file

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

Access to .env file

SourceSKILL.md
50if (process.env.NODE_ENV === 'development') {
low line 116

Access to .env file

SourceSKILL.md
116posthog.init(import.meta.env.VITE_POSTHOG_KEY, {
low line 117

Access to .env file

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

Access to .env file

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

Access to .env file

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

Access to .env file

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

Access to .env file

SourceSKILL.md
213# .env (Backend) - Keep private
low line 497

Access to .env file

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

Access to .env file

SourceSKILL.md
817if (process.env.NODE_ENV === 'development') {
low line 872

Access to .env file

SourceSKILL.md
872if (process.env.NODE_ENV === 'development') {
low line 886

Access to .env file

SourceSKILL.md
886if (process.env.NODE_ENV === 'development') {
low line 12

External URL reference

SourceSKILL.md
12**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 45

External URL reference

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

External URL reference

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

External URL reference

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

External URL reference

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

External URL reference

SourceSKILL.md
211NEXT_PUBLIC_POSTHOG_HOST=https://us.i.posthog.com
low line 215

External URL reference

SourceSKILL.md
215POSTHOG_HOST=https://us.i.posthog.com
Scanned on Feb 12, 2026
View Security Dashboard