Custom events allow you to track advanced activity with the JavaScript Events API or Events HTTP API. To implement the custom event you create into your JavaScript file or server-side script, you will require a developer. Once you've created your events, learn how to analyze and manage your event completions.
By default, value will be set to null. This is an optional argument that can be used to track the revenue of an event. This value will be used to increment the hs_analytics_revenue
property if the event is associated with a contact record.
Each time the event runs, the value associated with the triggered event will be added to the Revenue field on the contact's record. When setting up the conversion value, you can either enter a specific value or, to dynamically set the value, enter a JavaScript variable or a full jQuery selector. If you're adding a value, ensure you add it to the value parameter before adding the code snippet to your JavaScript file.
When creating a HTTP API event, a URL is automatically generated, containing the following required parameters:
In order to successfully connect a triggered HTTP API Event to a contact record in HubSpot, you need to pass the contact’s email address, &email, in the request URL. If a contact record does not yet exist for this email address, a new record will be created. Otherwise, the event will be attributed to the existing contact.
Learn more about using the Events HTTP API and adding additional optional parameters.
If you have a login-only section of your external website, you can use custom events to send to HubSpot information which users are actively logging in. Upon login, trigger the custom event. Once saved to the contact's record, you'll be able to segment and create lists based on recent logins. Some filters you can opt to use are specific time frames and the total number of times the event has been completed.
You can use custom events to determine the browsers your visitors frequently use and how often they visit from a mobile device.
Visitors frequently do not complete onlines purchase on a B2C company's website. Set up a custom event trigger once the visitor has calculated shipping, then segment these contacts in a list. Use the list to send a reminder to the contacts to finish their purchase.
Once the limit is reached, newly-created events will be added as Unexpected events in your events manager. To access your events manager:
Events can only be approved if the 2,000 event limit has not been exceeded, and completions will not be counted for events while they are in the approval queue. To recover previously deleted custom events: