Skip to content

Surface marketing analytics on products, home, and web analytics pages - #21694

Merged
jabahamondes merged 8 commits into
masterfrom
javier/marketing-analytics-product-surfaces
Oct 29, 2026
Merged

jabahamondes merged 8 commits into
masterfrom
javier/marketing-analytics-product-surfaces

Conversation

@jabahamondes

@jabahamondes jabahamondes commented Oct 28, 2026 •

Copy link
Copy Markdown
Contributor

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 /products page and the /web-analytics product 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-analytics page (it returns 404). Thus, the product links for marketing analytics go to /docs/web-analytics/marketing-analytics.

Changes

  • /products hero 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 uses buildTabs, which this PR does not change.
  • /products product list (ProductsTest.tsx): adds marketing_analytics to "Understand product usage", after web analytics.
  • Links: marketing_analytics.tsx sets an optional url. The carousel and the product list use product.url || /${slug}. All other products behave the same as before.
  • /web-analytics product 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.
  • Skills / MCP (skillsResourceRegistry.ts): maps marketing-analytics-* MCP tools to marketing_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, and productInterest.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).

/products hero carousel, "Understand product usage" slide

State Before After
Light, narrow window
Light, wide window
Dark, narrow window
Dark, wide window

/products product list, "Understand product usage" group

State Before After
Light, narrow window
Light, wide window
Dark, narrow window
Dark, wide window

/web-analytics Top features, "Traffic sources" tab

State Before After
Light, narrow window
Light, wide window
Dark, narrow window
Dark, wide window

Testing done

Check Command / method Result
Preview build Build & deploy preview workflow Pass (deploy step re-run once after a Cloudflare API 10500 error)
Visual check, 3 areas × 4 states Headless Chrome against production and preview Marketing analytics shows in all three areas. No overlap in the carousel at 640px or 1440px.
Console errors Compared console errors before (production) and after (preview) No new errors. React #418 shows on /web-analytics at 640px on both sides.

Not tested: pnpm format and the local dev server. node_modules is 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

jabahamondes and others added 6 commits October 28, 2026 10:56
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>
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>
@github-actions

github-actions Bot commented Oct 28, 2026 •

Copy link
Copy Markdown
Contributor

Deploy preview

Status Details Updated (UTC)
🟢 Ready View preview Oct 28, 2026 09:12PM

@github-actions github-actions Bot added the website About the website (beyond just landing pages) label Oct 28, 2026
@github-actions

github-actions Bot commented Oct 28, 2026 •

Copy link
Copy Markdown
Contributor

Bundle report

Total JS (gzip)

10.52 MiB (+0.1 KiB / +0.0%)

Eager graph (modules shipped in each entrypoint's initial chunks)

Entrypoint Eager size Budget Modules
✅ app 20.39 MiB (+0.3 KiB / +0.0%) report-only 2112
Largest modules in the app closure
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>
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
@jabahamondes
jabahamondes merged commit 7643b76 into master Oct 29, 2026
23 of 24 checks passed
@jabahamondes
jabahamondes deleted the javier/marketing-analytics-product-surfaces branch October 29, 2026 18:32
@github-project-automation github-project-automation Bot moved this from Backlog to Done in PostHog.com planning Oct 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

website About the website (beyond just landing pages)

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants