# Updating user properties using Segment calls not working

**URL:** <https://community.hubspot.com/t/updating-user-properties-using-segment-calls-not-working/22702>\
**Category:** APIs & Integrations\
**Tags:** events\
**Created:** [July 10, 2020, 9:22am UTC](https://community.hubspot.com/t/updating-user-properties-using-segment-calls-not-working/22702 "2020-07-10T09:22:22Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![wluczkanyn](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/wluczkanyn/32/22074_2.png) [@wluczkanyn](https://community.hubspot.com/u/wluczkanyn)\
**Post date:** [July 10, 2020, 9:22am UTC](https://community.hubspot.com/t/updating-user-properties-using-segment-calls-not-working/22702/1 "2020-07-10T09:22:22Z")

</div>

Hi guys,  
I have a problem regarding updating user properties in Hubspot by sending track calls from [Segment.com](http://Segment.com) (formerly [segment.io](http://segment.io)).  
The problem occurs with JavaScript source ([Analytics.js Source | Twilio](https://segment.com/docs/connections/sources/catalog/libraries/website/javascript/)).  
Previously, when we were sending track calls in this form:

```auto
analytics.track('Test Event', {
 email: 'johndoe@example.com',
 test_property: '1'
});

```

Both events were appearing on a contact timeline and properties were updated. From some time I noticed that when we send such a call, events still appear on a contact timeline, but properties are not updated.  
Of course I’m sending identifies before doing a track call and also I checked that identifies still update contact properties correctly.  
Question is: Do you maybe know why track calls do not update contact properties correctly?  
Best,  
Wojciech

---

<div class="post-metadata">

**Author:** ![WendyGoh](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/wendygoh/32/42320_2.png) [@WendyGoh](https://community.hubspot.com/u/WendyGoh)\
**Post date:** [July 13, 2020, 7:17am UTC](https://community.hubspot.com/t/updating-user-properties-using-segment-calls-not-working/22702/2 "2020-07-13T07:17:18Z")

</div>

Hey @wluczkanyn,

In order for me to further troubleshoot this, could you share with me the following:

1. Portal ID in question

2. Example contact in which the event appear but properties aren’t updated

3. Properties that you’d like to update

---

<div class="post-metadata">

**Author:** ![wluczkanyn](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/wluczkanyn/32/22074_2.png) [@wluczkanyn](https://community.hubspot.com/u/wluczkanyn)\
**Post date:** [July 13, 2020, 8:08am UTC](https://community.hubspot.com/t/updating-user-properties-using-segment-calls-not-working/22702/3 "2020-07-13T08:08:41Z")

</div>

Hi @WendyGoh,  
Thanks for your reply.  
Portal ID is 2773967  
My test account is [HubSpot](https://app.hubspot.com/contacts/2773967/contact/18608001/)  
There was an event “Voted For Marketplace” performed on this contact multiple times with property “marketplaces\_vote” which was not updated.  
Best,  
Wojciech

---

<div class="post-metadata">

**Author:** ![WendyGoh](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/wendygoh/32/42320_2.png) [@WendyGoh](https://community.hubspot.com/u/WendyGoh)\
**Post date:** [July 14, 2020, 2:27am UTC](https://community.hubspot.com/t/updating-user-properties-using-segment-calls-not-working/22702/4 "2020-07-14T02:27:38Z")

</div>

Hey @wluczkanyn,

Thank you for sharing the details and I believe I may be able to shed some lights here.

When looking to track an event using the [Events JavaScript API](https://legacydocs.hubspot.com/docs/methods/tracking_code_api/javascript_events_api), this API can only pass in two arguments: event ID and value. As such, this is likely why the property `marketplace_vote` wasn’t updated.

If you’d like to update the `marketplace_vote` property, you would need to place the `marketplace_vote` property on the [Identify a visitor API](https://legacydocs.hubspot.com/docs/methods/tracking_code_api/identify_visitor). i.e.

 ![29197i8D3FA1F549385803.jpg](https://d2qpr2jzcazej7.cloudfront.net/original/3X/5/4/54a0952e76d7bccf59f39de7c4656e602e6ca622.jpeg)

---

<div class="post-metadata">

**Author:** ![wluczkanyn](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/wluczkanyn/32/22074_2.png) [@wluczkanyn](https://community.hubspot.com/u/wluczkanyn)\
**Post date:** [July 14, 2020, 7:15am UTC](https://community.hubspot.com/t/updating-user-properties-using-segment-calls-not-working/22702/5 "2020-07-14T07:15:32Z")

</div>

Hey @WendyGoh,  
Thanks, that’s what I thought unfortunately.  
Do you maybe have idea why it worked for us a few monts ago?

---

<div class="post-metadata">

**Author:** ![WendyGoh](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/wendygoh/32/42320_2.png) [@WendyGoh](https://community.hubspot.com/u/WendyGoh)\
**Post date:** [July 15, 2020, 2:15am UTC](https://community.hubspot.com/t/updating-user-properties-using-segment-calls-not-working/22702/6 "2020-07-15T02:15:11Z")

</div>

Hey @wluczkanyn,

That’s interesting. From what I have recall, the [Events JavaScript API](https://legacydocs.hubspot.com/docs/methods/tracking_code_api/javascript_events_api) has only ever accept both and id and value. I wouldn’t have except that it would be possible to pass a custom property. In this case, do you have an example contact in which the property was updated via the [Events JavaScript API](https://legacydocs.hubspot.com/docs/methods/tracking_code_api/javascript_events_api)?

---

<div class="post-metadata">

**Author:** ![wluczkanyn](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/wluczkanyn/32/22074_2.png) [@wluczkanyn](https://community.hubspot.com/u/wluczkanyn)\
**Post date:** [July 16, 2020, 1:14pm UTC](https://community.hubspot.com/t/updating-user-properties-using-segment-calls-not-working/22702/7 "2020-07-16T13:14:21Z")

</div>

Hi,  
I’ve looked for an example, but I didn’t find any from some time, so I think you may have right or I’m just blind.  
Anyway, thanks a lot for your help, if I had any further issues with this I’ll follow up 🙂
