on:userEvent callback never called | Community
Skip to main content

on:userEvent callback never called

  • September 15, 2021
  • 2 replies
  • 0 views

Hi,

I've implemented the on:userEvent callback for analytics purposes but the analytics event is never received.
Are there any known bugs with this command? How can I know that the call back was registered on your end? How can I know if you are calling my callback? How can I know if you get errors trying to call my callback?
I'm using the Web Widget (Classic).

2 replies

Hi Cecile,

In addition to sending the event data to your analytics service, you can have your callback function log the event data to the console to confirm that it has executed. Are you seeing the user event data in the console when doing so?

Best,


  • Author
  • September 15, 2021

Yes I have added a console log. It did briefly log events for 1 minute but then stopped logging again.
How is the callback managed on Zendesk's end, how often should I register?