HubSpot Content Embed: HubSpot Content on External Sites

Published on 10 min read
HubSpot Content Embed

Not every company can move its whole site to HubSpot, and not every company should. The corporate site lives on WordPress because that is where IT wants it, the product docs live somewhere else, and marketing still wants to manage a pricing table, a testimonials block or a CTA section from HubSpot, connected to the CRM, without opening a ticket with the web team every time the copy changes. For years that meant copying and pasting HTML between systems and watching it drift.

Content embed is HubSpot's answer: you build a section of content in HubSpot with the modules you already know, and you embed it on an external page, where it renders live and updates when you update it in HubSpot. In this guide, I will cover what content embed is and what tier it needs, the two ways to place it on an external site, how it loads and why that matters for SEO, the styling and tracking rules that surprise people, and the layout-shift practices that keep the host page fast.

Part of the guide: HubSpot implementation: the guide and checklist

What content embed is, and the tier it needs

Content embed lets you create sections of content in HubSpot, built from modules in a dedicated embeds area, and then embed those sections into pages on another website. The content is managed in HubSpot and rendered on the external page, so a change in HubSpot appears on the external site without anyone touching that site's code. It is available on Content Hub Professional and Enterprise.

The right mental model is a shared component. The external site owns the page, the layout and the surrounding content; HubSpot owns the embedded section and whoever manages it in HubSpot can change it at will. It is the pattern for the pieces of a non-HubSpot site that marketing wants to control: offers, forms wrapped in richer sections, testimonial blocks, announcements, anything that changes more often than the page it sits on. The care that goes into HubSpot custom modules pays off twice here, because a module that exposes only the fields marketing needs is what makes an embedded section safe to edit from a distance.

Two ways to place it on an external site

There are two paths, and the choice depends on the external platform. If the site is WordPress, HubSpot provides a content embed plugin for the Gutenberg editor, so an editor inserts the HubSpot section as a block, without touching code. For any other platform, or for WordPress sites that prefer it, you copy the embed code from the embeds area in HubSpot, from the embed's menu, and paste it into the external page wherever the section should appear.

The embed code is a small container with the embed script and a call that creates the content inside the container. That shape matters for the practices below, because where the script loads and how tall the container is both affect how the host page behaves while the content arrives.

<div id="hs-embed-XXXXXXXX">   <script type="text/javascript" src="[EMBED SCRIPT SRC]"></script>   <script>hbspt.content.create({...});</script> </div>

JavaScript injection, not an iframe, and why that helps SEO

A detail that answers the first question most SEO teams ask: embedded content is not loaded through an iframe. It is injected into the host page through JavaScript. Search engines execute JavaScript and index the injected content as part of the host page, which avoids the classic problem with iframes, where the embedded content is attributed to another document and the host page gets no credit for it.

That makes content embed usable for content that should count toward the external page's SEO, not only for decorative blocks. It also means the content participates in the host page's layout, which is the source of both the styling behavior and the layout-shift considerations that follow.

Styling comes from the host page, tracking does not come at all

Two behaviors surprise teams on the first embed. The first is styling: a content embed takes its appearance from the page it sits on, not from HubSpot. The host page's CSS governs fonts, colors and spacing, so adjusting the embed's look means adjusting that page's stylesheet, in WordPress through its custom CSS. Build the section in HubSpot with structure in mind and expect the host to dress it.

The second is tracking. The embed code does not include the HubSpot tracking code. If you want the external page to feed HubSpot's traffic analytics, or to honor a HubSpot consent banner, you install the tracking code on the external pages separately, on WordPress most easily through HubSpot's plugin. Without it, the embedded content renders but the page is invisible to HubSpot's analytics and consent tooling. The same goes for a HubSpot cookie banner wired to GTM, GA4 and Clarity, which only reaches the external pages once the tracking code is there.

The footer that comes along for the ride

There is one more behavior worth knowing before launch. To deliver the embed, HubSpot inserts it through the footer of the default hs-sites domain, which preserves your domain-specific footers but has a side effect: anything in that default-domain footer rides along onto the external page with the embed. A copyright line or a snippet placed in the hs-sites footer will appear next to your embedded content on the external site.

Check the default-domain footer before you embed anywhere, and keep it empty of anything that would be wrong on a partner's or a corporate page. If something must live in that footer for HubSpot-hosted content, move it to the domain-specific footers instead, which do not travel with the embed.

A tip from someone who has been burned: open the external page with the embed in a private window before you tell anyone it is done, and look at three things: does the section look right under the host page's CSS, is there anything from the hs-sites footer sitting under it, and does the page jump when the embed loads. Each of those is a two-minute fix before launch and a complaint after it.

Keeping the host page fast: layout shift

Because the content is injected after the page starts rendering, it can push the content around it as it arrives, which shows up as Cumulative Layout Shift, one of the Core Web Vitals. Two factors drive it: where the embed sits on the page, and how tall it is, which depends on how many modules the section contains. The best practices follow from those two.

Embed below the fold where you can, because layout shift is measured on what the visitor sees first, and a section that arrives lower on the page shifts nothing the visitor is looking at. Move the embed script to the head of the external page rather than leaving it next to the creation call, so it is ready before the content is requested. And when the embed must sit above the fold, reserve its space by adding an inline minimum height to the container, measured by inspecting the rendered embed's computed height, so the page does not jump when the content fills in. If the embedded content differs per page, the minimum height may differ per page too.

Why this matters for your operation

Content embed closes a gap that used to force an uncomfortable choice: either move the whole site to HubSpot or accept that marketing cannot manage the pieces it cares about. With embeds, the site can stay where IT wants it while the sections that change often live in HubSpot, connected to the CRM, edited by the people who own the message. That is autonomy without a platform migration.

The discipline is small and specific: know the tier, pick the plugin or the code, install tracking separately, check the default footer, and manage layout shift. Skip those and the first embed produces a page that looks off, reports nothing to HubSpot and jumps on load. Follow them and the external site gains HubSpot-managed sections that nobody can tell were not built there.

In practice: the pricing table nobody could update

A company's corporate site ran on WordPress under IT, and every pricing change meant a ticket, a wait and a risk of the table drifting from the pricing in HubSpot's quotes. Marketing wanted to own that table and keep it aligned with the CRM, without moving the site.

They built the pricing section as a content embed in HubSpot and placed it on the WordPress page with the Gutenberg plugin. The host page's CSS styled it to match the site, the tracking code was installed separately so the page reported to HubSpot, and a minimum height on the container kept the page from jumping. Pricing changes went from a ticket to an edit in HubSpot that appeared on the corporate site within moments, and the table stopped drifting because it had one owner.

Checklist for content embeds on external sites

  • Is your account on Content Hub Professional or Enterprise?
  • Did you choose the WordPress Gutenberg plugin or the copied embed code based on the external platform?
  • Does the host page's CSS style the embed the way you want, given that HubSpot styling does not apply?
  • Is the HubSpot tracking code installed separately on the external pages, if you want analytics and consent?
  • Is the default hs-sites domain footer free of content that should not appear on the external site?
  • Is the embed below the fold where possible, with the embed script in the head and a minimum height on the container when above the fold?

Frequently asked questions

What is a HubSpot content embed?

A section of content built in HubSpot from modules, embedded into a page on another website, where it renders live and updates when you change it in HubSpot. It requires Content Hub Professional or Enterprise.

How do I add a content embed to WordPress?

With HubSpot's content embed plugin for the Gutenberg editor, which inserts the section as a block, or by copying the embed code from the embeds area in HubSpot and pasting it into the page.

Does an embed hurt the external page's SEO?

No. The content is injected through JavaScript, not an iframe, and search engines execute JavaScript, so the embedded content is indexed as part of the host page rather than attributed to another document.

Why does my embed look different from how it looks in HubSpot?

Because a content embed takes its styling from the host page, not from HubSpot. Adjust the external page's CSS, in WordPress through custom CSS, to change how the embed appears.

Does the embed include HubSpot tracking?

No. The embed code does not include the tracking code. Install it separately on the external pages to use traffic analytics and HubSpot consent banners.

Why does the page jump when the embed loads?

Because the content is injected after the page starts rendering. Embed below the fold when possible, move the embed script to the head, and set a minimum height on the container for embeds above the fold.

Let's talk? Want marketing to manage key sections of a site you do not host on HubSpot, connected to your CRM? At Insight Sales we design and implement content embeds that fit the host site and stay fast. Talk to our team and find out how we can help.

Talk to a specialist

What's next for your revenue operation? Let's look at it together.

A quick conversation with an engineer. (Not a sales call.)

Tags

Renato Ferreira - Founder

About the author

Entrepreneur with 15+ years in Sales & Marketing. Founded 4 companies (2 exits). Pioneer of Outbound Marketing in Brazil. Co-Founder at Insight Sales.