Skip to Content
Меню
Вам необхідно зареєструватися, щоб взаємодіяти зі спільнотою.
Це запитання позначене
1179 Переглядів

Hi, so I am installing Intercom chat on my site and I want it to know when a user is logged in so it saves things ot their accounts and things like that. I use Odoo online so I cant add any backend JS, so using the Custom HTML/CSS/JS feature on the frontend, how can I prefill the Intercom tag to have the user info? I see all these responses saying do require(session.web), but I cant do require, as i use Odoo online and can only add to the frontend Custom HTML.

<script>
  window.intercomSettings = {
    user_id: user.id, // IMPORTANT: Replace "user.id" with the variable you use to capture the user's ID
    name: user.name, // IMPORTANT: Replace "user.name" with the variable you use to capture the user's name
    email: user.email, // IMPORTANT: Replace "user.email" with the variable you use to capture the user's email address
    created_at: user.createdAt, // IMPORTANT: Replace "user.createdAt" with the variable you use to capture the user's sign-up date
  };
</script>

It would be amazing if someone can please tell me how to do this.

Thank you!

Аватар
Відмінити
Related Posts Відповіді Переглядів Дія
2
груд. 22
6122
0
лист. 24
1395
0
січ. 24
7132
0
бер. 21
2173
3
трав. 20
13103