Guide variables - insert user's name

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.

0

Comments

4 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

    0
  • I believe the only variable that is supported for the users name is:

    <%= root.metadata.visitor.fullName %>

    Which is full name, pretty sure there was a feature request to have only the first name variable but I can't find it.

    0
  • This works for first name:

    <%=root.metadata.visitor.first_name%>

    0
  • 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.

    0

Please sign in to leave a comment.

Didn't find what you were looking for?

New post