Tracking Code Integration
Learn how to track website traffic and donation attempts with HubSpot
Learn how to track website traffic and donation attempts with HubSpot.
In addition to tracking donor events, you can also choose to sync donation data via our first-party HubSpot CRM integration or via Zapier.
HubSpot Tracking Code Integration
This integration script is a template based on our JS API and can be customized according to your requirements.
Getting Started
The HubSpot tracking code unique to each account helps HubSpot monitor website traffic. More details are available at HubSpot documentation.
Track Events
Events help track actions, associating them with contact records to determine if a contact attempted or completed a donation. Events require a Marketing Hub Enterprise account.
-
Track checkout open:
-
Track completed donation:
Track Contact
Identify a visitor to your site by email. If there’s an existing contact, it’s updated; if not, a new record is created. This process links analytics data with the contact.
Track Form
For advanced use, treat the Checkout as a form submission with multiple fields. This approach may not be necessary if givetly’s CRM integration is already connected.
- Create the form in HubSpot first, including all fields to track.
Create a HubSpot Automation Workflow to use the data collected for subsequent actions like creating a Deal or enrolling in a welcome series.