Skip to content

Commit c8e475a

Browse files
gewenyu99claude
andcommitted
docs(product-tours): call the phc_ key a project token, not an API key
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
1 parent 26ea636 commit c8e475a

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

context/skills/creating-product-tours/description.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
Product tours use PostHog feature flags for targeting (who sees the tour and when) and PostHog events for tracking (completion, drop-off, step funnel). UI components should be custom-built but reusable across multiple tours.
44

5-
**Local-dev behavior**: the tour renders locally even when PostHog isn't initialized (no API key, provider not mounted, ad blocker active). The feature flag infrastructure is still scaffolded for production rollout — it just isn't a hard gate in dev. This lets engineers iterate on the tour without needing a PostHog project wired up. See "Local development" below for how the fail-open works and how to opt out.
5+
**Local-dev behavior**: the tour renders locally even when PostHog isn't initialized (no project token, provider not mounted, ad blocker active). The feature flag infrastructure is still scaffolded for production rollout — it just isn't a hard gate in dev. This lets engineers iterate on the tour without needing a PostHog project wired up. See "Local development" below for how the fail-open works and how to opt out.
66

77
## Step 1: gather requirements
88

@@ -73,7 +73,7 @@ interface UseTourOptions {
7373
storageKey?: string; // localStorage key to remember completion; defaults to `tour-${flagKey}`
7474
// When true, the flag check is enforced even if PostHog isn't initialized
7575
// (the tour won't render locally without PostHog wired up). Default false:
76-
// fail-open in dev so engineers can iterate without an API key.
76+
// fail-open in dev so engineers can iterate without a project token.
7777
requireFlag?: boolean;
7878
}
7979

0 commit comments

Comments
 (0)