If you cannot connect Microsoft Ads to HubSpot with reliable attribution, you cannot scale confidently. HubSpot is where marketing and sales collaborate and revenue is measured.
Connecting Microsoft 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 Search, Paid Social, 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.create
and 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 Microsoft Ads to HubSpot
1) Tag Microsoft Ads final URLs
Use consistent UTMs so Microsoft Ads clicks are recognized as Paid Search.
https://yourcompany.com/free-demo?utm_medium=paidsearch&utm_source=microsoft&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 and msclkid are captured before forms load.
4) Verify in HubSpot
Submit a test form, then confirm Contacts and Deals show Channel = Paid Search, Drilldowns for Microsoft, Campaign and Creative, plus Landing Page fields.
Example HubSpot reports
- Contacts by Channel
Paid Search, Paid Social, Organic over time. - Pipeline and Customers by Campaign
Which Microsoft Ads campaigns create Deals and Closed Won. - Revenue by Creative
Which ad variations generate the most revenue.
Wrap up
With Attry, connecting Microsoft Ads to HubSpot is fast. You get clean attribution on every Contact and reliable reports to guide budget.