A real project posted on ProfoundlyReal brief, anonymized

How Do You Get HubSpot Attribution From Non-HubSpot WordPress Forms?

Leads Reached the CRM but HubSpot Never Saw Where They Came From.

IndustryIndustrial and engineering
Company size201 to 500 people
RegionUS Southeast
TimelineAbout a week
Typical proposals$500 to $1,000What Pros proposed for real HubSpot projects on Profoundly.

The Situation

A mid-sized industrial and engineering company in the southeastern US had just bought HubSpot to run its marketing data, while Salesforce stayed its main CRM. Its WordPress landing pages used a third-party form plugin that sent leads straight to Salesforce, so HubSpot missed the tracking cookie and could not tie contacts to paid social, search and other campaigns. The team wanted a small script to pass each visitor's email and tracking cookie to HubSpot, leaving Salesforce to handle the rest.

What They Asked For

1An assessment of the WordPress site and existing form setup
2A small JavaScript snippet that captures the submitted email and the HubSpot tracking cookie
3Create or update the contact in HubSpot with full source attribution
4Leave existing Salesforce field mapping and automation untouched
5Attribution that works for paid search, paid social and LinkedIn campaigns

How Pros Approached It

1Confirm whether the HubSpot tracking code is already installed site-wide and add it where missing
2Write a lightweight script that reads the email on submit, picks up the tracking cookie and posts both to HubSpot's forms API
3Ask whether forms live on many landing pages or a few key ones, and whether any custom form events are in use
4Test end to end that original source and first page seen appear correctly in HubSpot and that Salesforce still receives its fields
5Ask whether attribution values should later flow into Salesforce as well, or stay in HubSpot only

The Kind of Pro Who Fits

Profoundly Certified

A HubSpot developer comfortable with WordPress, front-end JavaScript and the HubSpot forms API.

Work Involved

Attribution and lead source trackingAds and conversion trackingOther custom developmentForms, multi-step forms, conditional routing, conversion pathsSalesforceWordPressNinja Forms

Common Questions

Can HubSpot track attribution for forms that are not HubSpot forms?

Yes. With the HubSpot tracking code on the site, a small script can send the submitted email and the visitor's tracking cookie to HubSpot's forms API, which links the contact to their page views and original source.

Will adding HubSpot attribution break an existing Salesforce form integration?

It should not if done this way. The script sends a copy of the key details to HubSpot while the existing form keeps sending data to Salesforce as before, but it is worth testing both paths after go-live.

What does a Pro need to set this up?

Access to add code to the website, confirmation that every form includes an email field, a test page and form, and confirmation of whether the HubSpot tracking code is already running.

Have a project
like this?
Book a Free Call