If you run marketing for a B2B company and you are shopping for a Sanity and Next.js agency for a B2B marketing site, the question is not whether the stack is good. It is. The question is whether the team you hire will build it around pipeline, or around a developer's idea of a tidy codebase. This post is a buyer's filter: what the build should give your marketing team, and how to tell who can deliver it.
For general advice on choosing between agency and freelancer, or on what a proposal should contain, I have written separately. Here I stay on the B2B marketing specifics.
What a B2B marketing site actually needs
A B2B site is not a brochure. It is a sales asset with a long, multi-visit buying cycle. Visitors read a case study, leave, come back through a comparison page, and then fill in a demo form a week later. So the build has to support:
- Many landing pages, launched quickly, with consistent design
- Proof content: case studies, logos, testimonials, security and compliance pages
- Forms that reach your CRM with source data intact
- Pages that rank for commercial and comparison searches
- Speed, because paid traffic lands on these pages and slow pages waste spend
Sanity handles the content modelling well, and Next.js handles rendering and performance. But the stack only helps if the build is aimed at those five needs.
Lead-gen components: ask for blocks, not templates
The biggest difference between a good and a mediocre build is the component library your editors get. Ask the agency to show you the list of blocks before design starts. For B2B you should expect something like:
- Hero with one primary and one secondary call to action
- Logo wall and testimonial blocks
- Feature grid and comparison table
- Case study teaser and stat strip
- Form block (demo request, contact, gated asset)
- FAQ block that also outputs structured data
- Pricing or plan summary block
Each block should have a small, constrained set of fields. A hero should not have forty options. Constraint is what keeps pages on brand when five different people publish. If the agency proposes a free-form page builder where editors can nest anything inside anything, be careful. I have written about how that goes wrong in Sanity page builder out of control: how to rescue it.
Also ask for call-to-action fields to be reusable. If your demo link changes, editors should change it in one place, not hunt through sixty pages.
Editor autonomy: the test that matters
The promise of a headless build for marketing is that you stop filing tickets. Test that promise before you sign. Ask the agency:
- Can an editor create a new landing page from existing blocks without a developer?
- Is there live preview, so they see the page before publishing?
- Do slug changes create redirects, or silently break links?
- Can editors schedule a launch for a campaign date?
- What can editors not do, and why?
The fifth question is a good one. A thoughtful team has made deliberate limits, such as locking down URL structure or template choice, to protect SEO and design. For detail on what editors should get, see Next.js + Sanity CMS for marketing teams: what editors actually get and the setup advice in CMS for marketing teams: what to set up before editors touch it.
Ask for a short editor training session and a written guide as part of the handover. If that is not in the proposal, expect your team to struggle in month two.
HubSpot and form integrations
Forms are where B2B sites quietly lose money. A form that looks fine but drops submissions, strips UTM parameters or fails on a corporate email filter costs you real leads, and you often will not notice.
There are two common approaches with HubSpot. You can embed HubSpot's own form, which is quick and keeps their validation and consent handling. Or you can build the form in your own components and post to HubSpot from a server route, which gives full design control and better performance. Neither is wrong. What matters is that the agency can explain the trade-off and tell you which fits your situation.
Whatever route they choose, ask:
- Are UTM parameters and the referring page captured and passed to the CRM?
- Is there spam protection that does not hurt conversion?
- What does the user see if the CRM call fails, and does the lead still get saved or emailed?
- How is cookie consent handled before tracking scripts load?
- Who owns the HubSpot and analytics accounts?
A simple server-side pattern looks like this:
// app/api/lead/route.ts import { NextResponse } from "next/server"; export async function POST(req: Request) { const body = await req.json(); const { email, company, utm } = body; if (!email || !email.includes("@")) { return NextResponse.json({ error: "Invalid email" }, { status: 400 }); } const res = await fetch( `https://api.hsforms.com/submissions/v3/integration/secure/submit/${process.env.HUBSPOT_PORTAL_ID}/${process.env.HUBSPOT_FORM_ID}`, { method: "POST", headers: { "Content-Type": "application/json", Authorization: `Bearer ${process.env.HUBSPOT_TOKEN}`, }, body: JSON.stringify({ fields: [ { name: "email", value: email }, { name: "company", value: company ?? "" }, { name: "utm_source", value: utm?.source ?? "" }, ], }), } ); if (!res.ok) { return NextResponse.json({ error: "CRM error" }, { status: 502 }); } return NextResponse.json({ ok: true }); } Check the field names and endpoint against HubSpot's current documentation for your account, since your form's setup decides what is accepted. The point is the shape: validate, forward, handle failure visibly. If email delivery is part of your flow, Next.js contact form not sending emails: SendGrid causes and fixes covers the usual failure modes.
Technical SEO that belongs in the build
B2B search is commercial and competitive. The agency should treat SEO as part of the architecture, not a plugin they add at the end. Ask to see how they handle:
- Metadata fields per page with sensible fallbacks, plus social images
- Canonical URLs, sitemap generated from Sanity content, and robots rules that block staging
- Structured data for organisation, articles and FAQs
- Redirects when slugs change or when you migrate from an old site
- Heading structure enforced by the blocks, so editors cannot skip levels
If you are replacing an existing site, the migration plan matters more than the design. Ask for a URL mapping spreadsheet and a post-launch check against Search Console. My checklist is in Website redesign without losing SEO: a Sanity + Next.js checklist. For deeper CMS-level SEO criteria, see How to choose a CMS for SEO.
Performance you can hold them to
B2B pages tend to collect scripts: HubSpot tracking, chat widgets, analytics, session recording, ad pixels. The build can be fast on day one and slow by month three. Ask the agency how they will keep it fast. Good answers include loading third-party scripts after interaction where possible, a clear owner for adding new tags, and monitoring after launch rather than a one-off Lighthouse screenshot.
Ask for agreed targets on Core Web Vitals measured on real user data, not only lab tests. The business case is in Marketing website performance: what fast pages are actually worth, and the usual script problem is in Third-party scripts slowing your Next.js site.
Red flags when vetting an agency
- They show only front-end screenshots and never the Studio
- No mention of preview, redirects or scheduling
- Forms are described as just a contact form plugin
- SEO is listed as a single line item
- You will not own the Sanity project, Vercel account and repository
- No handover or training in the scope
The handover point deserves a clear contract line. See Sanity CMS project handover checklist: what you should receive.
What a good engagement looks like
A sensible B2B build starts with a short discovery: your funnel, your top pages, your CRM setup and who publishes what. Then a block library is agreed, a staging URL goes up early so marketing can try real content, forms are tested end to end with your CRM, and launch includes redirects and monitoring. After launch there should be a clear window to fix issues, plus an option for light ongoing support.
If you want a fixed-scope build, see the options on services and packages. If you are weighing who to bring in for a Sanity and Next.js project, the details of how I work are on hire a Sanity developer.
