Hello!
I’ve got the HubSpot Tracking code installed on my site. I’m trying to send a custom behavioral event with properties. One of the properties on my behavioral event is boolean. For that property, when my javascript writes out an event with a true or null value, it gets recorded just fine in HS.
However, if I try to send a false value, it gets recorded as null (or -- in the UI).
To reproduce the problem:
1. Create a custom behavioral event with a boolean property.
2. Send a false value for the property from the js
window._hsq.push([
'trackCustomBehavioralEvent',
{
name: 'pe123456_course_registration',
properties: {
is_working: false
},
},
]);
I expected to see false come through in that event for the is_working property.
In reality, I did not see the is_working property come through on the event at all.
A current work around I’m employing is to send the strings ‘true’ and ‘false’
window._hsq.push([
'trackCustomBehavioralEvent',
{
name: 'pe123456_course_registration',
properties: {
is_working: 'false',
},
},
]);
and that registers the is_working property with a false value for an event.
