Enabling authenticated visitors in the Chat widget

Return to top

3 Comments

  • Steve Hull

    This is missing a critical piece, which is code that waits for `$zopim` to be defined. We are getting `Uncaught ReferenceError: $zopim is not defined` on this line. I'm not sure if waiting for DOM content to be loaded would be sufficient or if there's something else we should do to ensure the zendesk js has successfully loaded.

    Scripts I've worked with in the past (eg, Google Analytics) have you push operations into a queue that is then worked off when the library is loaded. Is something like that available for zendesk js?

    0
  • Greg Katechis
    Zendesk Developer Advocacy
    Hi Steve! This article doesn't cover the specifics of adding the script to your page. In the article that does cover it, we mention that you should make sure that it's loaded before running any functions that depend on it. You can read about that here.
    0
  • Dev

    Is there any update on the possibility to call clearAll without needing to reload the page for Single Page Applications? Maybe if we know why it's not possible to authenticate the use again, we can do something about it without refreshing

    0

Please sign in to leave a comment.

Powered by Zendesk