docs: A/B test nav CTA copy (Comfy Cloud vs Try Cloud for free) - #1503
Draft
comfyui-wiki wants to merge 4 commits into
Draft
docs: A/B test nav CTA copy (Comfy Cloud vs Try Cloud for free)#1503comfyui-wiki wants to merge 4 commits into
comfyui-wiki wants to merge 4 commits into
Conversation
Contributor
|
Preview deployment for your docs. Learn more about Mintlify Previews.
💡 Tip: Enable Workflows to automatically generate PRs for you. |
|
Important Draft PR not reviewedDraft PRs are not automatically reviewed by default.
To automatically review draft PRs, update your CodeRabbit configuration: reviews:
auto_review:
drafts: trueThanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
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.
What & why
Requested in #website-and-docs (thread): test whether homepage-style copy on the docs navbar CTA drives more clicks and signups.
PostHog data from the thread: the docs CTA ("Comfy Cloud" → comfy.org/cloud?utm_source=docs) gets ~1.2% click rate (7,637 clicks from 6,294 people against 540k unique visitors, 30d), but 27% of clickers create an account. The funnel suggests people aren't clicking because the CTA doesn't read as an offer, not because the destination fails.
What changed
nav-cta-ab-test.js(repo root; Mintlify inlines every root-level .js file on all pages, same mechanism assyft.js):Self-contained variant assignment (no PostHog feature flag), per the thread discussion with Christian (inline
Math.random()option) and given that docs' PostHog runs through Mintlify's proxy with an unverified flag-evaluation path:control("Comfy Cloud") ortest("Try Cloud for free"), 50/50.docs_nav_cta_exposure{variant, label}— once per page loaddocs_nav_cta_clicked{variant, label, href}— on every CTA click (captures the actually-assigned variant)Trade-off (deliberate)
This does NOT use the PostHog experiment (#448700, flag
docs-cta-copy, left in draft and unused): no experiment dashboard readout (significance testing, guardrails), no dashboard kill switch, and signup attribution is manual (joindocs_nav_cta_*events to$signupby person). Analysis is done by filtering the two events above by variant. This keeps the hook ~100 lines, removes the flag-launch step and the proxy dependency, and the test is live immediately after deploy.How to launch
Merge this PR → Mintlify deploys → the test is live. No PostHog dashboard step needed.
Verification
Tested in a real browser against the live rendered nav DOM (desktop
#topbar-cta-buttonlink + mobile nav link), with a mocked PostHog and controlledMath.random():testarm swaps both labels to "Try Cloud for free";controlarm keeps "Comfy Cloud".docs_nav_cta_exposurefires with the assigned variant;docs_nav_cta_clickedcarries{variant, label, href}.