Segment integration
complete
N
Nick Amoscato
I remember reading about a client-side Segment.com integration at one point. Is that no longer available? Are there any plans to integrate with Segment server-side?
John Pham
complete
Jay Khatri
Hey Nick, we do have a client-side segment integration where you can patch the identify/track calls from segment so that you don't have to do any extra instrumentation.
If you need any help setting things up, don't be afraid to reach out!
Jay Khatri
And re: server-side, there are plans to build a deeper integration, but its still a few months out.
N
Nick Amoscato
Thanks for the link, Jay Khatri!
We do have that enabled; however, the trouble is that
window.analytics.identify
does not seem to affect the Highlight users, which are identified by device ID (attached). Thoughts?Jay Khatri
Nick Amoscato: Looping in John Pham who can look more into this. We'll get this sorted today.
John Pham
Nick Amoscato Hey Nick!
Just pushed a change that should fix the problem of the user traits not being assigned to the session.
Also updated our docs: https://docs.highlight.run/segment-integration
N
Nick Amoscato
Hey, thanks John! This seems good.
Minor, but the identifier is "quoted" for some reason. For example, we're passing an ID to Segment:
window.analytics?.identify(
String(currentUser.id),
traitsFromUser(currentUser)
);
which results in "2". Is that expected?
Also, is there anyway to view other user metadata / traits in Highlight?
John Pham
Nick Amoscato:
- We've removed the quotes from rendering on Highlight
- The only other place right now to see the metadata is through our search bar. If you have a trait called foowith a value ofbar, then you can search for sessions that either havefoo,bar, orfoo=bar.
What's your use case for being able to look at the user metadata? Totally open to feedback in this area.
edit:
> Also, is there anyway to view other user metadata / traits in Highlight?
If your question is why isn't
traitsFromUser(currentUser)
showing up in that screenshot; we show the traits that we get at that same place. On our end, we see that your latest few sessions do have Segment traits.---
Also, if you'd like to see a more meaningful name for your sessions, you can send Highlight
highlightDisplayName
. We'll render that value instead. We support this with both the Segment integration and our
identify()
.N
Nick Amoscato
Thank you, John! This seems to all be working well now.
> What's your use case for being able to look at the user metadata?
Our additional metadata includes company ID and role, which provides useful context.