Skip to content

Case study 17 · Business systems and integrations

HubSpot forms built to match the rest of the site

We moved a Swedish SaaS company's marketing site onto HubSpot CMS and built the custom forms it had been told were not possible, with tracking intact.

EngagementWeb engineer · 2023 · 6 months · Swedish SaaS in code analysisPublished

in production since 2023

Existing site migrated to HubSpot CMS

The story in 5 steps

Stack

  • HubSpot CMS
  • HubL
  • JavaScript
  • CSS

01 · Context

The client sells behavioral code analysis to engineering teams, so its website is its primary sales channel.

For the client, the main result is that the marketing team now changes headlines and copy, and adds fields, without a developer or a deploy.
I was brought in specifically for the forms, after the client had been told they could not be built the way it wanted them.

02 · Could not change

Adding a HubSpot form is easy until someone wants it to look like the rest of the site.

HubSpot's embedded form comes with its own markup and styling, and deeper customization is limited and brittle.
Without the tracking cookie the form still works, but it is worthless to marketing, because no submission can be attributed to the visit that produced it.

03 · What I did

I built the pages as HubL templates and modules, with a library of reusable blocks that every page is assembled from.

I set up the fields so the marketing team edits content directly: headlines, descriptions and new fields.
I built the purchase and contact forms fully custom against the HubSpot API, with the tracking cookie passed on every submission, so attribution still works.

04 · Result

Existing site migrated to HubSpot CMS, in production since 2023

The marketing team edits content without a developer or a deploy
Custom-designed purchase and contact forms, with tracking preserved

05 · Differently

The custom forms solved the design problem and created a maintenance one: every future change in how the CRM expects submissions is now our problem rather than the platform's.

Related services

The services that draw on this work.

Case study 17

Working on a similar problem? We reply within one business day.

The first call takes 30 minutes, and you’re under no obligation.

Tell us about your projectcontact@microtech.consulting