Send Data from a HubSpot Form to Advocate
Once you’ve integrated Advocate with HubSpot, you can automatically track referrals with HubSpot forms. Referrals are tracked by placing a cookie on the website that your referral form is on. Brands using other setups will need to add the UTT to their landing page.
An active HubSpot integration is required to send data from HubSpot Forms to Advocate. Refer to Integrate with HubSpot for Advocate to get started.
Copy your UTT
From the top navigation bar, select
[User profile] → Settings.
On the right, below Program → Tracking, select General.
Copy your UTT and save it somewhere you can easily access it, like a notepad app.
Generate your referral attribution script
In your impact.com account, from the top navigation bar, select
[User profile] → Settings.
On the left, below Advocate Settings, select Install.
In the Use referral cookies section, select whether you’re using a HubSpot landing page or a custom landing page.
Copy the resulting referral attribution script and save it somewhere you can easily access it, like a notepad app.
Set up your landing page
Next, continue based on which type of landing page you're using.
HubSpot landing page
In HubSpot, go to your landing page’s settings.
Expand the advanced options.
In the Additional code snippets box, add the UTT and the referral attribution script.
Save your changes.
Custom landing page
Paste the UTT and the referral attribution script on your landing page.
In HubSpot, go to your form settings.
Select Embed and find the
region,portalId, andformIdvalues.Paste them into the referral attribution script on your landing page. There are instructions in the script to show you where to add this information.
Optionally, test the form
Submit test information to the form to confirm that it’s properly attributing referrals. Make sure that:
The lead is created as a new Advocate participant, if you’re using this data sharing rule.
The contact in HubSpot contains Advocate properties like referral code, share link and, message links.
Last updated

