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

コメント

6件のコメント
  • 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
  • Bumping this - does anyone know if it's possible to just populate first name?

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

    0

サインインしてコメントを残してください。

お探しのものを見つけられませんでしたか?

新規投稿