I am looking for an example of how to insert the user's first name (from metadata) into a guide's text. It is mentioned in this article but I don't see an example.
Hmm, Chris Crompton that didn't work for me, would this have something to do with our installation? When I go into a Visitors page, under the Agent section we only have ID, Account, email, FullName, language, and role.
Carrie Clough try <%= metadata.visitor.firstName %>, it might be spelled differenly based on the naming convention of the field. If so, check your metadata mapping
Comments
Hey Eric,
Have you checked out this article as well? If anyone else has any examples they'd like to share, please comment in the thread!
https://support.pendo.io/hc/en-us/articles/360032206811-Recipe-Using-Metadata-in-Javascript
I believe the only variable that is supported for the users name is:
Which is full name, pretty sure there was a feature request to have only the first name variable but I can't find it.
This works for first name:
<%=root.metadata.visitor.first_name%>
Hmm, Chris Crompton that didn't work for me, would this have something to do with our installation? When I go into a Visitors page, under the Agent section we only have ID, Account, email, FullName, language, and role.
Bumping this - does anyone know if it's possible to just populate first name?
Carrie Clough try <%= metadata.visitor.firstName %>, it might be spelled differenly based on the naming convention of the field. If so, check your metadata mapping
Please sign in to leave a comment.