Visitor

Set basic info about visitor

Methods

Name Parametre Description
name string Set visitor's name
email string Set visitor's email
status string Set visitor's status to active or idle
group string Set visitor's group
language string Set chat box language
variables object Set additional visitor's info

name

<script> smartsupp('name', 'Username'); </script>

email

<script> smartsupp('email', 'useremail@domain.com'); </script>

status

Mark visitor as active or idle (helpful in non-refresh application, when you want setup activity manually).

<script> // mark visitor as active smartsupp('status', 'active'); // mark visitor as inactive smartsupp('status', 'idle'); </script>

group

<script> smartsupp('group', 'GROUP_HASH_ID'); </script>

language

Supported languages: en, ar, br, cn, cs, da, de, es, fa, fi, fr, hr, hu, it, ka, lt, nl, no, pl, pt, ro, ru, sk, sl, sv, tr, tw, uk

Example:

Set language: english, česky, polski

Set language: <a href="javascript: smartsupp('language','cs')">česky</a>, <a href="javascript: smartsupp('language','en')">english</a>, <a href="javascript: smartsupp('language','de')">deutsch</a>

variables

<script> smartsupp('variables', { accountId: { label: 'Account ID', value: 123 }, role: { label: 'Role', value: 'admin' } }); </script>