analytics.js-integrations icon indicating copy to clipboard operation
analytics.js-integrations copied to clipboard

[Hubspot] Segment not updating contact properties when using identify & page

Open amaelftah opened this issue 5 years ago • 3 comments

when calling these methods in order

  analytics.page()

  analytics.identify('1773', { 
        company: { 
          id: 1016, 
          name: 'Ahmed Local Test Brand' 
        }, 
       email: '[email protected]', 
       first_name: 'Ahmed', 
       full_name: 'Ahmed Local Test', 
       last_name: 'Local Test', 
       phone_number: null, 
       sent_campaigns: 500, 
       subscribers_count: 220 
 });

we except that in Hubspot '[email protected]' contact properties get updated but that's not happening.

and when using Segment event-tester with the same code. it worked fine and updated the properties .

Screenshots of debugger & event tester

1- debugger

2-event tester

amaelftah avatar Sep 12 '19 18:09 amaelftah

Hey. I noticed the same problem on my side.

YoshiYo avatar Sep 16 '19 15:09 YoshiYo

@YoshiYo i have opened an issue in segment. and this was their last response after a conversation. thought it would help you.

Segment sends data a little differently from the event-tester - that's done in cloud mode, where as your sending data from your website in device-mode. This is why the event tester is working as expected, but your website isn't.

HubSpot’s device-mode integration has two conditions for identify to successfully create or update a contact. A traits.email value must be included and either a page or track call must be called. You can read more from HubSpot’s documentation here. If you are using HubSpot’s cloud-mode integration, an identify call will update records without a page or track call being needed.

Those two conditions you pointed out are required, but they're not the only conditions that HubSpot has. Unfortunately, your plan with HubSpot also matters for device mode, regardless of whether those initial conditions are met.

You could contact HubSpot support, and see what they say, but based on what you've said, I feel confident that this is a matter of having the Pro rather than the Enterprise plan. Data is arriving in Segment successfully, but Hubspot isn't accepting it.

amaelftah avatar Sep 17 '19 10:09 amaelftah

I know this is an old post but it helped me when after endless hours of trying to troubleshoot. You are required as @amaelftah say to have enterprise plan on hubspot for this to work.. Just an extra $2000 per month from pro for this feature...

tap1on avatar May 03 '21 12:05 tap1on