Repository navigation
[CI] (38ef7e6) astro/astro-static-marketing - #2586
Closed
wizard-ci-bot[bot] wants to merge 1 commit into
Closed
wizard-ci-bot[bot] wants to merge 1 commit into
wizard-ci-bot[bot] wants to merge 1 commit into
Conversation
Author
PR Evaluation ReportSummaryThis PR integrates PostHog into an Astro static marketing site ("NeuralFlow AI") using the HTML snippet approach via a reusable
Confidence score: 4/5 👍
File changes
App sanity check ✅
Issues
|
| Criteria | Result | Description |
|---|---|---|
| PostHog SDKs installed | Yes | HTML <script> snippet loads PostHog from CDN. Also has posthog-js in package.json (redundant but valid). |
| PostHog client initialized | Yes | posthog.init() called in posthog.astro with API key and host from env vars via define:vars. |
| capture() | Yes | Four distinct capture() calls across pages: cta_clicked, pricing_plan_selected, docs_section_clicked, nav_link_clicked. |
| identify() | No | No identify() call present. This is a static marketing site with no auth flow, but no identification mechanism exists. |
| Error tracking | No | No error tracking configured — no captureException, no error listeners, no capture_exceptions config option. |
| Reverse proxy | No | No reverse proxy configured. Client-side requests go directly to us.i.posthog.com. |
Issues
- No error tracking: No exception capture mechanism is set up. For an Astro static site, adding
capture_exceptions: trueto the init config or a global error listener would suffice. [MEDIUM] - No reverse proxy: PostHog requests are sent directly to
us.i.posthog.com, making them susceptible to ad blockers on this marketing site where tracking reliability matters. [MEDIUM] - Outdated defaults version: Uses
defaults: '2026-01-30'instead of the current'2026-05-30'. This may miss newer default configuration improvements. [LOW] - Outdated snippet format: The snippet uses
s.api_host+"/static/array.js"for the script source. The current docs uses.api_host.replace(".i.posthog.com", "-assets.i.posthog.com") + "/static/array.js"which routes through the assets CDN. [LOW]
Other completed criteria
- API key loaded from environment variable (
PUBLIC_POSTHOG_PROJECT_TOKEN) — not hardcoded - API host loaded from environment variable with correct fallback to
https://us.i.posthog.com - Uses
is:inlinedirective as required by Astro docs - PostHog component correctly placed in Layout
<head>so all pages are instrumented - Uses
window.posthog?.capture()with optional chaining for safe access
PostHog insights and events ✅
| Filename | PostHog events | Description |
|---|---|---|
src/pages/index.astro |
cta_clicked |
Tracks hero CTA button clicks with cta_text and cta_location properties |
src/pages/pricing.astro |
pricing_plan_selected |
Tracks pricing plan selection with plan name and cta_text |
src/pages/docs.astro |
docs_section_clicked |
Tracks documentation section card clicks with section name |
src/components/Navigation.astro |
nav_link_clicked |
Tracks navigation link clicks with link_text |
Issues
No issues with event quality.
Other completed criteria
- Events represent real user actions on a marketing site (CTA clicks, pricing selection, docs browsing, navigation)
- Events enable product insights — can build CTA→pricing funnels, track most popular docs sections, analyze navigation patterns
- All events include relevant contextual properties (text, location, plan name, section)
- No PII in event properties — only UI element labels and identifiers
- Event names are descriptive, consistent snake_case, and clearly describe the user action
Reviewed by wizard workbench PR evaluator
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Automated wizard CI run
Source: wizard-pr
Trigger ID:
38ef7e6App:
astro/astro-static-marketingApp directory:
apps/astro/astro-static-marketingWorkbench branch:
wizard-ci-38ef7e6-astro-astro-static-marketingWizard branch:
release-please--branches--main--components--wizardContext Mill branch:
mainPostHog (MCP) branch:
masterTimestamp: 2026-07-09T19:06:10.324Z
Duration: 429.3s
YARA Scanner