Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pass Livechat page visited to channel/room #740

Open
reetp opened this issue Sep 26, 2018 · 2 comments
Open

Pass Livechat page visited to channel/room #740

reetp opened this issue Sep 26, 2018 · 2 comments

Comments

@reetp
Copy link

reetp commented Sep 26, 2018

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
RocketChat/Rocket.Chat#11238

Livechat REST endpoints
RocketChat/Rocket.Chat#11900

@renatobecker-zz
Copy link

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.

@reetp
Copy link
Author

reetp commented Oct 4, 2018

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.

@hugocostadev hugocostadev transferred this issue from RocketChat/Rocket.Chat Mar 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants