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

Jan. 10, 2019, 9:58 p.m.

I've checked this page:


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

2 Answers

Jan. 11, 2019, 11:08 a.m.

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

  window.civchat = {
    apiKey: 'YOUR_API_KEY',
    name: "",
    user_id: "",
    email: "",

Jan. 10, 2019, 10:35 p.m.

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.