Sending User Data
- Last updated on April 9, 2020 at 7:15 AM
To help with restricting article access, and also identifying customers with live chat, you can send the user's information through the script.
After loading the main script, you can then send through any user specific information.
You can mix and match any of the items you want to use, however if you want to send through an email address you must also send through a user_hash. For help on how to generate the user_hash, click here.
To show the elevio Assistant to only logged in users, you must send through the email and user hash.
The
user_hash
is used to verify the authenticity of the
Only send auser_hash
if you are also sending an
If you want to send through more than one group, just separate each group with a comma.
window._elev.on('load', function(_elev) { _elev.setUser({ first_name: 'John', last_name: 'Doe', email: 'john@example.com', user_hash: '98aad46fd8124d2f8096fdfd2f5695', groups: ['gold', ’silver’], traits: { Plan: 'Gold', 'Monthly Spend': '$99' } }); });
You can then use the email address, email domain, or group to provide restricted access to specific articles in the tab. Learn more about Smart Groups here.