Hello folks!
I’m sending some data from Segment to Hubspot, with a new custom event that I’ve created previously. I’ve created a new property for my contacts too, but when the event is tracked in Segment and dispatched for Hubspot, that specific value isn’t fulfilled on contact’s profile.
I’m sending an event with a property named last_blog_created and a new property with the same name(the internal one).
My purpose here it’s to use that value and append it on an e-mail that my contact will receive when this event is fired.
I’ve replaced the original values with FAKE_VALUE for security reasons.
As you can see in the snippet above, I’m sending a property called “last_blog_created” with a URL, and I’ve created a property for all contacts with the same name.
When I dispatch that event from Segment to Hubspot, my workflow is triggered, and an email is sent to the contact. But the value of “last_blog_created” on the contact profile isn’t fulfilled with the value that comes from the event.
I’m not using the Events JavaScript API, and yes, my Hubspot ID is 355XXX.
When looking at the segment documentation here: HubSpot Destination | Segment Documentation - It looks like if you’d like to set HubSpot contact properties on the track function, you’d need to add it in the context.traits object. E.g.
Also @WendyGoh, how can I get the name of a field to update, for example I would like to update Opted out of email marketing information, I found the internal name but it seems it doesn’t work either using .identify
BTW, Im not using analytics.js Im using analytics-node
@estrada9166 I’m doing exactly like you, and its working.
To get the name of a specific field, you must click on the property to see its settings and click at that blue button on the right side of the input. There you’ll see the name you will pass to Segment in order to update it.
I have been using this context>traits technique for a while now, but we discovered recently that the information is no longer being persisted in contacts profile. Other destiantions do recieve the data, but not HubSpot.
Any of you guys encountered this problem before? I’m sure we didn’t change a line of code, and specially that other distanations seem to be working properly.