Send form sign-ups to conversion tracking for ad campaigns
Each new HubSpot form sign-up is sent to LinkedIn as a conversion, so your ad campaigns can see which clicks turned into sign-ups.
Install it
Set up this Zap for me, read how here: https://zapier.sh/zapier/awesome-zaps/send-form-sign-ups-to-conversion-tracking-for-ad-campaigns/
Paste into Claude, ChatGPT, Cursor or any agent.
- Category
- Marketing · Marketing analytics
- Author
- Zapier
- Source
- zapier/awesome-zaps, folder zaps/send-form-sign-ups-to-conversion-tracking-for-ad-campaigns
Set it up with the CLI
- Add it. Copies the folder into
zaps/send-form-sign-ups-to-conversion-tracking-for-ad-campaigns/. Outside a project, it makes one first.npx zap-pack add awesome-zaps/send-form-sign-ups-to-conversion-tracking-for-ad-campaigns - Fill in the values in
config.ts, and in any other file the list marks. Replace each one as its comment and SKILL.md say. - Deploy it. Asks for any value still left, signs you in to Zapier if you aren't, then publishes it to your account.
npx zap-pack deploy send-form-sign-ups-to-conversion-tracking-for-ad-campaigns - Check it. Its recent runs, with status and errors.
npx zap-pack logs send-form-sign-ups-to-conversion-tracking-for-ad-campaigns
zaps/send-form-sign-ups-to-conversion-tracking-for-ad-campaigns/
- README.mdWhat it does, for people
- SKILL.mdHow an agent sets it up: what to ask you, and how to test it
- config.tsIts settings 2 to fill in
- connections/hubspot.tsThe
hubspotaccount it uses - connections/linkedin-conversions.tsThe
linkedin-conversionsaccount it uses - triggers/form-submission-resthook.tsWhat starts it:
hubspotform_submission_resthook_v31 to fill in - workflow.tsThe code; each
ctx.stepis a step in the Zap
Agents: add --yes to any command so it never prompts. When it needs an answer only the user can give, it stops and names the flag that supplies it.
SKILL.md
View MarkdownWhat it does
- Trigger: HubSpot, New Form Submission (
hubspot,form_submission_resthook_v3), for one form. The submission ID and email come from the trigger. - Code skips the run if the submission has no ID or no email. Duplicate submissions are not filtered; see Notes.
- LinkedIn Conversions sends a conversion event for that email to one LinkedIn conversion, with the HubSpot submission ID as the event ID.
Ask the user
Each REPLACE_… value is set per person. Resolve names to IDs with the user's own connections; don't ask them to paste an ID you can look up.
| Setting | Where | What goes there |
|---|---|---|
REPLACE_HUBSPOT_FORM_GUID |
triggers/form-submission-resthook.ts, form_guid |
The HubSpot form whose sign-ups get reported |
LINKEDIN_AD_ACCOUNT |
config.ts |
The LinkedIn ad account that owns the conversion |
LINKEDIN_CONVERSION |
config.ts |
The Conversions API conversion each sign-up is reported to. Create it in Campaign Manager first; it must be of type "Conversions API" |
Also review the default with them: the Zap skips a submission with no email. Ask whether a sign-up without one should still be sent; the template skips it.
Build it
If you can run shell commands, set it up with zap-pack: run npx zap-pack add awesome-zaps/send-form-sign-ups-to-conversion-tracking-for-ad-campaigns, replace each REPLACE_… value as this file says, then run npx zap-pack deploy send-form-sign-ups-to-conversion-tracking-for-ad-campaigns, which signs the user in to Zapier when it gets there. Otherwise build with Zapier MCP, as the steps below say. No Zapier MCP tools? Read https://docs.zapier.com/mcp/get-started/quickstart.md and follow the page for the app you are running in to get the user connected, then continue with this build.
- Accounts: bind
hubspotto the HubSpot connection for the portal that owns the form, andlinkedin-conversionsto the LinkedIn connection for the Campaign Manager account that owns the conversion. The trigger and the action use the same accounts. - Source: publish
workflow.tsandconfig.ts, with eachREPLACE_…replaced by the user's answer.triggers/form-submission-resthook.tsandconnections/are settings, not code: set the workflow's trigger and connection bindings from them. The trigger file names the app by its slug; for the trigger'sselected_api, callsearch_triggerswith that slug, find the row whosekeyis the trigger'sevent, and use<app_key>@<app_version>from it. - Build guide: load Zapier's build guide with
get_zapier_skill("zapier:build-workflows")and follow it to create, test and publish the workflow. - Fields: inspect each action's fields with the user's connections (and sample the trigger, if it has one) before the first test run, and fix any key in
workflow.tsthat doesn't match.
Test it
Run it once as a draft test with a submission from the user's HubSpot test form, and a LinkedIn conversion marked as a test:
{
"id": "900000000001",
"Email": "test.signup@example.com",
"vid": "900001"
}
Check that the run finished, that the LinkedIn step returned a status, and that the conversion shows in Campaign Manager's conversion tracking with the submission ID as the event ID. If run-status tools aren't available, check the result in LinkedIn Campaign Manager directly. Then publish, confirm the trigger is active, and ask the user to delete the test data, not the agent. Never run it with a real customer's email.
Notes
- Duplicate submissions are not filtered: a durable workflow has no shared store of past submission IDs. LinkedIn may deduplicate on the event ID; check that for the user's conversion before relying on it.
- The trigger declares only
id,vidandEmail, so name, company and UTM fields are not mapped. - To add campaign detail, parse the UTM fields from the submission. To make sure the lead exists in HubSpot first, add or update a contact before the conversion.
- Never commit a real form ID, ad account ID, conversion ID or test email. The values in
config.tsand the trigger are placeholders on purpose.