콘텐츠로 건너뛰기
메뉴
커뮤니티에 참여하려면 회원 가입을 하시기 바랍니다.
신고된 질문입니다

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!

아바타
취소
관련 게시물 답글 화면 활동
2
12월 22
5995
0
11월 24
1289
0
1월 24
7024
0
3월 21
2072
3
5월 20
13103