# Croct + HubSpot

HubSpot captures your leads. Croct turns every submission into a signal you can measure, enrich
profiles with, and act on, without changing how you collect leads.

## What it does

- Tracks every successful submission as a goal, so you get conversion rates and can use
  forms as goals in experiments and experiences.
- Sends form field values into Croct profiles, which feeds segmentation and personalization.
- Lets an A/B test or an experience decide which form each visitor sees.
- Works with both legacy and new HubSpot forms.

## How it works

Croct listens for a successful submission and tracks it as a goal completed event. The fields
you map flow into the visitor's profile. To vary the form itself, store the HubSpot form ID in a
slot: your page renders whichever ID the slot returns, so each variant or experience can show a
different form.

## Setup

Listen for submissions with the global form event, or with the embed-code callback on legacy
forms. Then map the fields you want into the profile and, if you want to vary the form, put the
form ID in a slot.

Setup is one command, `npx croct@latest init`, which installs the SDK, wires the provider
and generates TypeScript types for every slot. Official SDKs cover Next.js, React, Vue,
Nuxt, JavaScript, PHP, Laravel, Symfony, Drupal, and Shopify Hydrogen. Most teams are live
the same day, and the forever-free plan needs no credit card or commitment.

## Frequently asked questions

### Does it work with both legacy and new HubSpot forms?

Yes. Submissions can be caught with a global form event, or with an embed-code callback on
legacy forms.

### How are submissions tracked?

As a goal completed event, which means conversion rates in your dashboards and forms usable as
goals in A/B tests and experiments.

### Can I show different forms to different visitors?

Yes. Store the form ID in a slot and let an A/B test or a personalized experience decide which
one each visitor gets.

### How much development work does it take?

Wiring the submission listener once, and mapping the fields you care about.

### What does it cost?

The forever-free plan covers 10,000 monthly active users with 3 content slots and 1
experience or experiment, and needs no credit card. Growth starts at $100 per month billed
annually for 20,000 monthly active users. Scale is custom.
