Overslaan naar inhoud
Menu
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Deze vraag is gerapporteerd
529 Weergaven

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!

Avatar
Annuleer
Gerelateerde posts Antwoorden Weergaven Activiteit
2
dec. 22
5294
0
nov. 24
722
0
jan. 24
6467
0
mrt. 21
1690
3
mei 20
13103