I'm having problems with Custom Script Integration for logged in users

10 de Enero de 2019 a las 21:58

I've checked this page:

https://user.com/en/integrations/custom-script/

but I'm not sure how can I set up the attributes of user's that are logged in?

2 Respuestas


11 de Enero de 2019 a las 11:08

When you put the code on your website it should look like that:

<scriptdata-cfasync="false"type="text/javascript">
  window.civchat = {
    apiKey: 'YOUR_API_KEY',
    name: "",
    user_id: "",
    email: "",
  };
</script><scriptdata-cfasync="false"type="text/javascript"src="https://widget.userengage.com/widget.js"></script>


10 de Enero de 2019 a las 22:35

The code you implemented for logged in users should look like:

user_id : '{{dynamic variable with user id}}'

email: '{{dynamic variable with email address}}'

{{ }} - these are references to values, which are already in your data_layers. They relate to what is on your page.