Installing intercom chat manually (not using discourse plugin). I need to find some variables

Hello,

Please can somebody help me with an issue with intercom script. I have installed it and everything works perfect except for 2 variables which I really need.

The image below shoes the script for logged in users:

The code highlighted in green works and pulls in the data to intercom.

The code highlighted in red does not pull the data into intercom.

I believe the issue is that this <%= current_user.name %> is not the variable for “Full Name” in discourse.

The second part is the User ID which I do not know what the variable is… Does anyone know the variable to use here?

image

Kind regards in advance.

Look like your script not run in any Discourse context, try to search theme/component development at Meta.