How to integrate HubSpot with server-side GTM for conversion tracking?

I need help setting up a connection between HubSpot and server-side Google Tag Manager for better conversion tracking.

What I want to achieve:
When a lead status updates in HubSpot, I want to automatically send this data to my sGTM container, which then forwards it to Google Ads and GA4 for conversion tracking.

Current setup:

  • Using Stape for server-side GTM hosting
  • Created both web and server containers in GTM
  • Installed Stape’s Data Client template

My approach so far:

  1. Create HubSpot workflow that triggers on lead status change
  2. Send POST request from HubSpot to sGTM endpoint
  3. Process data in sGTM and forward to Google platforms

Issues I’m facing:

Webhook configuration: I’m using /data endpoint with my sGTM URL. I get 200 responses but only see requests in GTM preview when Stape’s preview header is enabled.

Tag setup: For a payload like this:

{
  "status_change": "opportunity_update",
  "lead_stage": "SQL"
}

How do I properly configure variables to read the status_change value? I want to trigger Google Ads conversion tags when lead_stage equals “SQL”.

Privacy concerns: Since personal data flows through this system, do I need to hash user information for enhanced conversions? Most interactions happen via phone calls.

Any guidance on proper variable configuration and privacy handling would be appreciated!

the webhook seems ok, but check your data client since it needs to match stape’s expectations. also, dont forget to hash any PII for better conversion tracking! SHA256 is good for emails and phone numbers before sending to google ads.