How can I integrate a HubSpot CTA (call to action) embed code in Webflow?

TL;DR
  • Copy the HubSpot CTA embed code and paste it into a Webflow Embed element where you want it on the page.  
  • Publish the Webflow site and verify the CTA appears on the live page, as it won’t display in preview mode.

To integrate a HubSpot CTA embed code in Webflow, you'll need to use Webflow's Embed element to inject the provided HubSpot script. Here’s how to do it:

1. Get the HubSpot CTA Embed Code

  • Log in to HubSpot and navigate to Marketing > Lead Capture > CTAs.
  • Find the CTA you want to use, click the Actions dropdown, and select Embed.
  • Copy the full embed code provided by HubSpot.

2. Open Your Webflow Project

  • Go to Webflow Designer and open the page where you want the CTA to appear.
  • Scroll to the section or element where you want to place the CTA.

3. Use the Embed Element in Webflow

  • From the Add Panel (press A), drag an Embed element into the canvas at your desired location.
  • Paste the HubSpot embed code into the Embed Code field.
  • Click Save & Close.

4. Publish and Test

  • Publish your Webflow site to your custom domain or Webflow.io domain.
  • Visit the live page, not the Webflow Designer preview—HubSpot scripts only run on published pages.
  • Confirm that the embedded CTA displays and functions correctly.

Summary

To add a HubSpot CTA in Webflow, copy the embed code from HubSpot, use Webflow’s Embed element to paste it on the page, and publish the site. The CTA only renders properly on the live site, not in preview mode.

Rate this answer

Other Webflow Questions