FreeGTM variables

HubSpot Lookup variable

The HubSpot Lookup variable by Stape lets you pull contact data from HubSpot directly within your Google Tag Manager server container. It uses the HubSpot CRM API to find an existing contact and make selected CRM information available to your server-side tracking tags and workflows.

You can identify a contact by email, Contact ID, or a custom identifier, then choose which HubSpot properties should be returned. The variable also supports response caching through server-side GTM's templateDataStorage, which helps avoid unnecessary API requests when the same contact is looked up repeatedly.

Benefits of the HubSpot Lookup variable

  • Connect sGTM with HubSpot CRM: query your HubSpot contact database from the server container and retrieve current contact properties.
  • Enrich server-side events: add CRM information such as firstname, lastname, email, phone, or city to the data available during server-side processing.
  • Reduce repeated API calls: cache lookup responses in templateDataStorage and define how long cached data should remain available.
  • Choose how contacts are identified: use an email address or Contact ID, or define another unique identifier that matches your data.
  • Retrieve only the data you need: request selected HubSpot properties or process the entire contact record.

Related to this solution

HubSpot app by Stape: report data from CRM to the platforms you need
Jun 9, 2026

Blog

HubSpot app by Stape: report data from CRM to the platforms you need

Send Contact status updates to platforms such as Meta & Google Ads and track offline conversions. Set up the Stape Conversions Tracking app for HubSpot.

Stape Conversion Tracking Hubspot app
Sep 3, 2026

Solutions

Stape Conversion Tracking Hubspot app

Discover how to integrate HubSpot CRM with Meta CAPI to send lead statuses, optimize ad campaigns, and track online and offline conversions.

We have more than 200 000 happy clients

Try Stape for all things server-side