Hi,
I want to tract the chat bot click action. I have some javascript code which should run when chat bot click… So I want to know how can we add javascript code on chatbot click.
1 Like
Yes, you can our JavaScript callback methods like collectchat.on('open', function(){})
to detect when the widget opens and accordingly you can add your code.
There are a couple of other callbacks like collectchat.on('message', function(){})
to track when user answers each question.
Please see these docs for reference - https://developers.collect.chat/#/callbacks
If you have any further questions on this please let us know.
Cheers,
Shyjal