Re-Initializing When a User Toggles Between Multiple Accounts
In my app (a Ruby on Rails app) a user can have access to multiple accounts and can toggle between which account they are using at any given time. When they switch accounts it refreshes the page / fires a turbolinks:load event, but when I run pendo.validateInstall() it still shows the old account info from before the user toggled to switch accounts. How should I handle users that switch between accounts so that the correct account info is sent to Pendo? Thank you!
0
Comments
It sounds like that turbolinks event is leaving you with a cached version of the page, including the previous visitor information. I'd suggest adding in an identify() statement to go along with that account change. You can see that described here. Another thing to keep in mind is that if you have any guides that rely on the new account information, you'd also want to add in a loadGuides() command.
Hope this helps!
Jason Ackerman Can I ask if you had any trouble adding Pendo to your Ruby on Rails app? My team is having trouble with ours so I'm wondering if you had to use any special 3rd party integrations or anything.
Please sign in to leave a comment.