Open reetp opened 6 years ago
Hi @reetp,
We have a setting to track the visitor's page visited. Once it's enabled, then all navigation history will be sent as a regular message inside the current Livechat room.
You can activate this setting accessing the Adminstration -> Livechat -> Send Visitor Navigation History as a Message
.
In case you want to monitor these kind of messages outside the Rocket.Chat, you can rely on Livechat webhooks: Adminstration -> Livechat -> CRM Integrations -> Send Visitor Navigation History on Request
.
As you can see, you have at least two options to make it work.
Thanks.
Hmmmm - I was aware of those settings, but they aren't really what I was after.
Those settings assume you have had a chat. The navigation history is being logged, but the way it is working currently the history will only be sent once there has been a chat and it has been closed.
The scenario I was looking at was when there was no actual chat conversation. I just wanted to throw a log of the browse history to a channel as it happened, regardless of whether a chat was actually started or not.
I can't quite figure out if this is currently possible or not.
I noticed that whilst visitors browse my website the livechat widget is recording the pages they visit.
e.g.
method livechat:pageVisited href: 'https://www.mywebsite.com/index.php?main_page=page&id=45&zenid=ge703jsscot5brdjcet5vvb206
I'd like to throw that to a private channel in real time for monitoring.
The visitor may start a chat in which case the data is view-able, but if they don't then information would still be interesting to see.
I can't see a way to do it easily with the Outgoing Web Hook as it doesn't monitor Livechat as far as I can see (may be allow more Event Triggers???), nor RealTime API, and I am not sure this will do it either (and I think you are moving away from Meteor?)
https://github.com/jszaszvari/rocketchat-ddp-listener
Yes, I could grep the logs and push it with the realTIme API but that seems a bit heavy handed when it is
likely most of code to do this already in Rocket.
Possible references:
Livechat Analytics and Reports https://github.com/RocketChat/Rocket.Chat/pull/11238
Livechat REST endpoints https://github.com/RocketChat/Rocket.Chat/pull/11900