The HubSpot tag for the server GTM communicates with the HubSpot API.
You can use this tag to:
- Track custom behavioral events
- Track ecommerce events
- Create new contacts
- Update existing contacts
- Associate custom objects with contacts
- Generate Visitor Identification Token cookie for the Chat Widget (e.g. identify logged-in users by passing their name and email to HubSpot for chat functionality, or use identified users for targeted CTAs such as displaying pop-ups only for non-logged-in users).
- The tag will set the
__hs_visitor_id_tokencookie with the token value. You must pass this value in your HubSpot Javascript SDK when loading the chat widget. Learn more about the Visitor Identification Token.
- The tag will set the
How to use HubSpot tag
- Add HubSpot tag to the server GTM from the template gallery.
- Add HubSpot API Key.
- Select event.
- Add user email and event information.
Useful Resources
Open Source
HubSpot Tag for GTM Server Side is developed and maintained by Stape Team under the Apache 2.0 license.