Unable to update Account Id using Identify() on user login

Hi Team, 

I have started integrating Pendo to our app, and we want to track the anonymous user activity and logged in user activity as well. 

We are using Pendo in a react SPA app, so i have added the Code Snippet on Index.html file, with the data to initialize as follows, 

window.pendo.initialize({
visitor: {
       id:'',
       application:"app-name",
},
account: {
       id:'anonymous',
       application:"app-name",
},
});
 
And then on user sign in flow, added a function to call Identify() function as follows, 
 
window.pendo.identify({
visitor: {
        id:tokenAttributes["sub"],  // this gives user id 
        application:"app-name",
},
account: {
        id:tokenAttributes["organizationId"], // this gives org id
        application:"app-name",
},
});
 
After login, i could see visitor id is getting updated, but account id is not updating. 
Tried to pass accountId as '', during initialize, but no difference. 
 
I tried to debug to see if i can understand anything, 
 
Have added a debug on this line, 
Fn(e.visitor.id) && G.identify(e.visitor.id, e.account.id),
 
When i debug, i could see account id updated with orgId, but after all the code ran, it is getting back to 'anonymous'
 
Can someone help what is missing in this case ?? 
0

コメント

2件のコメント
  • Hi, I am also facing same issue. There is no documentation regarding these methods, like what input we need to pass programatically

    0
  • I can't speak to what might be wrong with your code but here's the link to the documentation. Hope this helps!

    Identity | Pendo Agent API

    0

サインインしてコメントを残してください。

お探しのものを見つけられませんでしたか?

新規投稿