Repository navigation
Surface marketing analytics on products, home, and web analytics pages - #21694
Merged
jabahamondes merged 8 commits intoOct 29, 2026
Merged
Conversation
Web analytics is billed with analytics events, and marketing analytics (beta) is billed through rows synced by sources. Neither was listed in the free tier section, so it wasn't clear how they're charged. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Adds a minimal product entry, like Evaluations, so the calculator shows marketing analytics as billed with Sources. Shortens the free tier label to "Billed with sources". Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ed-with-analytics
The analytics item already shows the web analytics icon, so a separate row read as a duplicate. Explain the shared allowance in a tooltip instead. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Drops the web analytics tooltip on the analytics free tier item. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Treats marketing analytics like Evaluations: a named sub-product with no landing page of its own. Adds it to the /products analytics group and the home hero carousel, lists it as a web analytics feature, and maps marketing-analytics MCP tools to it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Contributor
Deploy preview
|
Contributor
Bundle reportTotal JS (gzip)10.52 MiB (+0.1 KiB / +0.0%) Eager graph (modules shipped in each entrypoint's initial chunks)
Largest modules in the
|
| Module | Size |
|---|---|
./src/data/mcp-tools.json |
1452.7 KiB |
css ./node_modules/.pnpm/css-loader@5.2.7_webpack@5.101.3/node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[8].oneOf[1].use[1]!./node_modules/.pnpm/postcss-loader@4.3.0_postcss@8.5.6_webpack@5.101.3/node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[8].oneOf[1].use[2]!./src/styles/global.css |
839.8 KiB |
./src/components/Stickers/Stickers.tsx |
696.4 KiB |
./node_modules/.pnpm/@posthog+brand@0.13.0_react@18.3.1/node_modules/@posthog/brand/dist/generated/hoggies/svg/x-ray.mjs |
481.2 KiB |
./node_modules/.pnpm/@posthog+brand@0.13.0_react@18.3.1/node_modules/@posthog/brand/dist/generated/hoggies/svg/trenchcoat.mjs |
450.8 KiB |
./node_modules/.pnpm/rehype-raw@7.0.0/node_modules/rehype-raw/lib/index.js + 29 modules |
395.1 KiB |
./node_modules/.pnpm/@posthog+brand@0.13.0_react@18.3.1/node_modules/@posthog/brand/dist/generated/hoggies/svg/im-the-driver.mjs |
385.8 KiB |
./src/hooks/useCustomers.tsx + 61 modules |
381.8 KiB |
./node_modules/.pnpm/@posthog+brand@0.13.0_react@18.3.1/node_modules/@posthog/brand/dist/generated/hoggies/svg/tourist.mjs |
364.6 KiB |
./node_modules/.pnpm/@posthog+icons@0.36.6_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@posthog/icons/dist/posthog-icons.es.js |
354.8 KiB |
./node_modules/.pnpm/react-markdown@8.0.7_@types+react@16.14.66_react@18.3.1/node_modules/react-markdown/lib/react-markdown.js + 88 modules |
351.4 KiB |
./src/components/ProductComparisonTable/index.tsx + 130 modules |
314.2 KiB |
./node_modules/.pnpm/framer-motion@14.0.0_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/render/components/motion/proxy.mjs + 126 modules |
287.2 KiB |
./node_modules/.pnpm/@posthog+brand@0.13.0_react@18.3.1/node_modules/@posthog/brand/dist/generated/hoggies/svg/doll-house.mjs |
284.1 KiB |
./node_modules/.pnpm/cloudinary-core@2.14.0_lodash@4.17.21/node_modules/cloudinary-core/cloudinary-core.js |
281.9 KiB |
Eager-graph budgets are report-only until a baseline is established. Sizes are gzip of public/**/*.js; eager size is webpack module source bytes for the modules actually shipped in the entrypoint's initial chunks (post-tree-shake).
It has no landing page, so /products and the home carousel now use an optional url override instead of sending people to /web-analytics. The feature item moves to Traffic sources, next to channel attribution and UTMs. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
ianmatson
approved these changes
Oct 28, 2026
Base automatically changed from
javier/pricing-billed-with-analytics
to
master
October 28, 2026 19:51
…alytics-product-surfaces # Conflicts: # src/hooks/productData/marketing_analytics.tsx
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.
Related to #21680. Follow-up to #21685 (merged).
Summary
Marketing analytics is a beta feature inside web analytics. #21685 added it to
/pricing. This PR shows it on the/productspage and the/web-analyticsproduct page, in the same way as Evaluations: a named sub-product with no landing page of its own.This PR does not change the Home page or the Pricing page.
There is no
/marketing-analyticspage (it returns 404). Thus, the product links for marketing analytics go to/docs/web-analytics/marketing-analytics.Changes
/productshero carousel (HeroCarousel/slides.tsx): adds it to the "Understand product usage" slide. The slot is on the right side, at the top, opposite web analytics. That spot was empty. This slide set (productUsageTabs) is used only on/products. The Home page usesbuildTabs, which this PR does not change./productsproduct list (ProductsTest.tsx): addsmarketing_analyticsto "Understand product usage", after web analytics.marketing_analytics.tsxsets an optionalurl. The carousel and the product list useproduct.url || /${slug}. All other products behave the same as before./web-analyticsproduct page (web_analytics/features.tsx): adds a "Marketing analytics" item in the "Traffic sources" tab. Before this change, the page did not mention marketing analytics.skillsResourceRegistry.ts): mapsmarketing-analytics-*MCP tools tomarketing_analytics. Before this change, these tools had no mapping.Not changed on purpose:
src/data/tools.ts, the "Browse tools" menu, the home "Built-in tools for your agents" ticker, andproductInterest.ts. These are for products with their own landing page, such as Experiments and Web analytics.For reviewers: web analytics team, is this the correct level of visibility for a beta feature?
Screenshots
Before: production (posthog.com). After: preview
3eff72ba. Captured with headless Chrome at 640px (narrow) and 1440px (wide)./productshero carousel, "Understand product usage" slide/productsproduct list, "Understand product usage" group/web-analyticsTop features, "Traffic sources" tabTesting done
Build & deploy previewworkflow10500error)/web-analyticsat 640px on both sides.Not tested:
pnpm formatand the local dev server.node_modulesis not installed in my checkout, so I used the preview build. I checked the line lengths by hand.Preview links
/products: the carousel slide at the top and the "Understand product usage" list. The Marketing analytics links open the marketing analytics docs./web-analytics: the "Marketing analytics" item in Top features, "Traffic sources" tab🤖 Generated with Claude Code