How to connect LinkedIn Ads to HubSpot

If you cannot connect LinkedIn Ads to HubSpot with reliable attribution, you cannot scale confidently. HubSpot is where marketing and sales collaborate and revenue is measured.

Connecting LinkedIn Ads to HubSpot with Attry gives every Contact and Deal the right source, campaign, and creative so you can build reports that prove what creates customers.

How the connection works

Attry is a lightweight script you add to your site. It detects where a visitor came from, normalizes it into channels like Paid Social, Paid Search, Organic, and stores it in a cookie while they browse. On form submit, Attry writes the attribution into hidden fields so it flows into HubSpot.

If your HubSpot forms are embedded in cross-origin iframes, Attry loads a HubSpot specific adapter that patches hbspt.forms.createand injects attribution via onFormReady. The adapter is served from /api/integrations/hubspot/adapter and the source is inlib/attribution/hubspot-adapter.js.

4 steps to connect LinkedIn Ads to HubSpot

1) Tag LinkedIn Ads final URLs

Use consistent UTMs so LinkedIn clicks are recognized as Paid Social.

https://yourcompany.com/free-demo?utm_medium=paidsocial&utm_source=linkedin&utm_campaign=brand-us-q3&utm_content=creative-a

2) Add hidden fields to your HubSpot forms

  • Channel
  • Channel Drilldown 1
  • Channel Drilldown 2
  • Channel Drilldown 3
  • Channel Drilldown 4
  • Landing Page
  • Landing Page Group

3) Install the Attry snippet

Place the snippet in <head> so UTMs are captured before forms load.

4) Verify in HubSpot

Submit a test form, then confirm Contacts and Deals show Channel = Paid Social, Drilldowns for LinkedIn, Campaign and Creative, plus Landing Page fields.

Example HubSpot reports

  1. Contacts by Channel
    Paid Social, Paid Search, Organic over time.
  2. Pipeline and Customers by Campaign
    Which LinkedIn campaigns create Deals and Closed Won.
  3. Revenue by Creative
    Which ad variations generate the most revenue.

Wrap up

With Attry, connecting LinkedIn Ads to HubSpot is fast. You get clean attribution on every Contact and reliable reports to guide budget.

Get Started Free Today

Try Attry free for 14 days. Paid plans start at just $49/month. Cancel anytime.