curl --request POST \
--url https://js.hs-scripts.com/trackEvent \
--header 'Content-Type: application/javascript' \
--data @- <<EOF
"_hsq.push(['trackEvent', { id: '000000001625', value: 100 }]);"
EOFTrack behavioral events in your HubSpot reports. Events can be tied to a contact record. Requires Marketing Hub Enterprise.
curl --request POST \
--url https://js.hs-scripts.com/trackEvent \
--header 'Content-Type: application/javascript' \
--data @- <<EOF
"_hsq.push(['trackEvent', { id: '000000001625', value: 100 }]);"
EOFvar _hsq = (window._hsq = window._hsq || []);
_hsq.push([
"trackEvent",
{
id: "000000001625",
value: 100,
},
]);
var _hsq = (window._hsq = window._hsq || []);
_hsq.push([
"trackEvent",
{
id: "custom_event_name",
property1: "value1",
property2: "value2",
},
]);
Was this page helpful?