-
Notifications
You must be signed in to change notification settings - Fork 3
Add non-student roles, job title, and grades into Intercom #1206
Comments
would also like the change to be retroactive |
@benetechMatt That's the full list of information currently being asked during Teacher sign up, so I don't believe there's information in addition to that. |
To clarify from call today, this is asking for "user types", as well as "grades" and "role" for the teacher user type. |
@johnhbenetech has added this information retroactively to Intercom. New fields of "Grade" "UserType" and "UserRole @johnhbenetech will this information now automatically go to Intercom for new users as well? |
@benetechMatt I want to do an audit of that, so if it's okay I can put this in the backlog |
I have updated the role key to userRole |
@rupeshparab something is still off here. The user get's registered in intercom, but still doesnt have the custom attributes. I sniffed all the network packets and I dont see that data being passed to intercom. I see several events being passed - but they dont include the additional fields - nor are they in the initial ping. Please audit the implementation as I wonder if there is some change to how intercom expects these values. They reference IntercomSettings instead of just passing in the event: I worry the current react library we are using is dead. We probably need to pull it out and replace it with this one: Let me know if I'm missing something obvious |
@johnhbenetech Also the library has been inactive for some time: nhagen/react-intercom#73 Will integrate react-use-intercom in its place |
#1206 - experimental change to check if intercom has booted
#1206 - add wait for intercom boot
Hey @rupeshparab, I still think there is something going on here which warrants a closer look: I think there are two issues here potentially:
So those same data keys should be used, they just need to be passed to the component like here: I think we might be able to handle this with react-intercom as a quick fix, but should still get an estimate for how long we think it might take to switch to react-use-intercom. |
#1206 - integrate intercom custom attributes
@johnhbenetech I will checkout the react-use-intercom for ETA on porting our current intercom api calls to it |
@rupeshparab This still isn't functioning as expected. We no longer need to pass the userType, userRole, and grades as metadata within an event. Instead we need to pass them as part of the intercomAttributes as keys in addition to user_id, email, name |
#1206 - move parameters from user details event to custom attributes
@johnhbenetech |
Sorry @rupeshparab one more fix (it's my fault for not looking into this more) So userType and userRole are working great now, thanks! Unfortunately for grades, Intercom does not accept arrays for values, only text. So we will need to concatenate the array into a string (with comma-separated values, so like: "K-5,6-8,9-12,13+" Let me know if you have other questions, sorry again! |
No worries John, I have pushed a fix for it |
Working! |
For anyone that does not select that they are a student when signing up, this information should be added to Intercom as new custom fields
Role - teacher, non-teacher, etc.
grade
job title
Is there any additional information currently being asked or collected when users sign up?
The text was updated successfully, but these errors were encountered: