Is it possible to get the values of user attributes programatically? | Community
Skip to main content
Answer

Is it possible to get the values of user attributes programatically?

  • March 8, 2021
  • 3 replies
  • 83 views

Is is possible to get the user attributes from intercom to javascript function on my webpage? I want to use intercom attributes in some of the pages.

Best answer by Eric Fitz

Hey @pushkar​, we do expose the values of attributes as parameters in the intercom.Settings object in our JS function. I'd imagine you'd need to write some custom code on your end to transpose these values into the different elements of your site.

3 replies

Eric Fitz
Employee
Forum|alt.badge.img+5
  • Employee
  • Answer
  • March 11, 2021

Hey @pushkar​, we do expose the values of attributes as parameters in the intercom.Settings object in our JS function. I'd imagine you'd need to write some custom code on your end to transpose these values into the different elements of your site.


  • Author
  • New Participant
  • June 16, 2021

Thanks for your response Eric. I just came back to it now. Can you please point me towards documentation for using the intercom.settings object?

 

Thanks.


Eric Fitz
Employee
Forum|alt.badge.img+5
  • Employee
  • June 16, 2021

Sure thing, @pushkar​! You can find all the documentation you need for our Javascript API here.