Skip to main content
Contentful → HubSpotIntegration guide

Connecting Contentful to HubSpot

Contentful is headless content only — it has no checkout, no orders and no customers, which is the single most important thing to establish before anyone quotes for work. HubSpot is where sales works, so a conversion that never reaches it is invisible to the people who decide what a lead was worth. The join between them succeeds or fails on one thing: whether the contact identity — email, or the hubspotutk cookie reaches the front-end conversion, not a Contentful record before the conversion happens, because HubSpot can only match a conversion it can tie back to a click it recognizes.

Free30 minutesNo obligation

Specific to this pair

Contentful and HubSpot: forms in your front end, not in the CMS

HubSpot tracking on a Contentful site lives in the front end: push setPath and trackPageView on each route change. If your form component posts to the HubSpot Forms API, include the visitor's hubspotutk in its context so the contact stitches to page views and original source. Add the entry ID as a contact property; revenue stays on deals.

HubSpot tracking on a Contentful site runs in your front-end app, and the usual break is routing. On a single-page app built with Next.js or similar, HubSpot's tracking code records the first page of a visit unless your router tells it about each route change (HubSpot documents a setPath and trackPageView push for this). Without it, the page-view history HubSpot uses for original source, lead scoring and the contact timeline is one landing page. Test by clicking through five pages as a fresh visitor, converting, and reading the timeline.

Forms are the second issue. Embedded HubSpot forms often fight with React rendering, so many teams post to HubSpot's Forms API from their own form component. That works only if the submission includes the visitor's hubspotutk in its context; otherwise the new contact is not stitched to its page views and original source reads as Offline Sources or Direct. Confirm the exact context field in HubSpot's Forms API reference.

Contentful can contribute one useful thing: send the Contentful entry ID or content type of the page where the form was submitted as a contact property, so sales can see which gated asset or landing entry produced the lead. If Contentful's marketplace lists a HubSpot app for your space, check what it does; it concerns content, not conversions. Revenue lives on HubSpot deals, entered by sales.

Contentful → HubSpot · what breaks

Why this join usually fails — Contentful → HubSpot

  1. 01

    The contact identity — email, or the hubspotutk cookie never reaches Contentful

    Because Contentful is headless, the front end is a separate application — usually Next.js, Nuxt or similar — and that application is where client-side routing, caching and identifier capture all actually happen. Attributing a tracking problem to Contentful is nearly always a misdiagnosis.

  2. 02

    Blaming the CMS for a front-end problem

    Headless setups fail at the front end — client-side routing that fires one pageview per session, an identifier lost on a route change — and the CMS gets blamed. Contentful is not in that path at all.

  3. 03

    Duplicate contacts

    Two records for one person, each with half the history. Every downstream report is then wrong in a way that looks like a data problem rather than an integration problem.

  4. 04

    Nothing reconciles afterwards

    HubSpot shows the contact record and its timeline. A successful API response means HubSpot accepted the call, not that it resolved to the right contact — open the record and look.

Contentful → HubSpot · the fix

What working looks like — Contentful → HubSpot

  • The contact identity — email, or the hubspotutk cookie on every conversion

  • Conversions arriving in HubSpot

    The revenue or conversion lands on the contact record and its associated deal, where sales can see it and where HubSpot's own attribution reporting can use it.

  • Reconciled against the source

Contentful → HubSpot · architecture

How Contentful and HubSpot actually connect

  1. 1

    Contentful holds the truth

    Contentful stores content and serves it via API. The commercial record lives in your commerce platform, your CRM or your billing system, and that is where measurement belongs.

  2. 2

    HubSpot needs a click to match

    HubSpot needs to resolve the incoming data to an existing contact or create one. Without an email or a hubspotutk it creates duplicates, and duplicate contacts break every report built on top of them.

  3. 3

    The identifier is the bridge

    The contact identity — email, or the hubspotutk cookie, captured at the visit and carried into the front-end conversion, not a Contentful record.

  4. 4

    The event source decides reliability

    Send from the system that holds the money. Contentful contributes the content layer and nothing to the conversion.

  5. 5

    Deduplication at the destination

    HubSpot deduplicates contacts on email address. Events and property updates against the same contact are idempotent by design, but a second contact created for the same person is not detected, and merging them afterwards is manual work.

Contentful → HubSpot · normal or broken

Working vs. broken, side by side — Contentful → HubSpot

Normal, not a fault

  • The contact identity — email, or the hubspotutk cookie present on the conversion

  • Sent from your commerce, CRM or billing system

  • Deduplicated correctly

    HubSpot deduplicates contacts on email address. Events and property updates against the same contact are idempotent by design, but a second contact created for the same person is not detected, and merging them afterwards is manual work.

  • Reconciles with the source

Actually broken

  • The contact identity — email, or the hubspotutk cookie missing on most records

    Because Contentful is headless, the front end is a separate application — usually Next.js, Nuxt or similar — and that application is where client-side routing, caching and identifier capture all actually happen. Attributing a tracking problem to Contentful is nearly always a misdiagnosis.

  • Sent from the browser

    Headless setups fail at the front end — client-side routing that fires one pageview per session, an identifier lost on a route change — and the CMS gets blamed. Contentful is not in that path at all.

  • Counted twice, or not at all

    Two records for one person, each with half the history. Every downstream report is then wrong in a way that looks like a data problem rather than an integration problem.

  • Nobody has reconciled it

Contentful → HubSpot · diagnose

Diagnostic order — Contentful → HubSpot

  1. 01

    Count conversions carrying the contact identity — email, or the hubspotutk cookie

  2. 02

    Follow one real conversion end to end

  3. 03

    Establish which system holds the conversion before anything else

    In a headless stack it is never the CMS, and starting there wastes the engagement.

  4. 04

    Search for the test contact by email after sending

    One record or two? Then check whether the properties landed on the contact or only on the form submission — they are different things and only the first is usable.

  5. 05

    Read the match rate, not the success message

    HubSpot shows the contact record and its timeline. A successful API response means HubSpot accepted the call, not that it resolved to the right contact — open the record and look.

Contentful → HubSpot · prove

How it gets proven — Contentful → HubSpot

Source of truth

Whatever system takes the money — Contentful holds none of it.

  • The contact identity — email, or the hubspotutk cookie confirmed present on a live conversion.
  • One contact record confirmed, not two, with the property visible on the contact rather than only on the submission.
  • The conversion confirmed sourced from the commerce or CRM system rather than from anything in the content layer.

Contentful → HubSpot · free audit

What we check in the free audit

  • Count conversions carrying the contact identity — email, or the hubspotutk cookie
  • Follow one real conversion end to end
  • Establish which system holds the conversion before anything else
  • Search for the test contact by email after sending
  • Read the match rate, not the success message

Checked against

Whatever system takes the money — Contentful holds none of it.

Get my free conversion tracking audit

Free30 minutesNo obligation

Contentful → HubSpot · when not to buy

When you don't need this — Contentful → HubSpot

  • Measure identifier coverage yourself first — pull your last hundred conversions and count how many carry the contact identity — email, or the hubspotutk cookie.
  • There is no Contentful-specific tracking build. The work is in your front-end framework and your commerce system, and we would say so rather than bill for the CMS.
  • HubSpot's native form and tracking code already handle the straightforward cases well. This is worth building when the conversion happens somewhere HubSpot's code cannot see.

Contentful → HubSpot · what we deliver

What gets built — Contentful → HubSpot

  • Identifier capture into Contentful

    Capture and persist the identifier in the front-end application, server-side, and carry it into whichever system records the conversion.

  • Event source: your commerce, CRM or billing system

    Send from the system that holds the money. Contentful contributes the content layer and nothing to the conversion.

  • Dispatch to HubSpot

    The HubSpot API — contact create-or-update with the properties, or a custom behavioral event where you need the timeline entry rather than a property.

  • Reversals where they exist

    Handled wherever the money lives.

Written guarantee

95%+ tracking accuracy

Measured against Whatever system takes the money — Contentful holds none of it.. Miss it and we keep working at no cost.

Get my free conversion tracking audit

From $400 · See packages

FAQ

Contentful → HubSpot questions, answered

Your front end is a single-page app and HubSpot's tracking code is not told about route changes. Push the new path and a page view on each navigation.

Free · 30 min

Get Contentful and HubSpot joined properly

Free30 minutesNo obligation