Live Helper Chat support forum.. Forum is locked. New place for questions - Github Discussions

You are not logged in.

Announcement

#1 2015-02-18 19:17:09

sledov
Member
Registered: 2014-11-04
Posts: 10

custom data during website browsing

Hi all,
I am using the page widget and I am successfully passing some info during the chat initialization in the LHCChatOptions array. I can see this data in the visitors list in the chat admin. My issue is:
I am using a single page template for my website and I want to be able to either pass new data, either change the current one. What I want to achieve is to be able to track which section of the page is being viewed. Is that possible?

Offline

#2 2015-02-18 19:20:38

remdex
Administrator
From: Lithuania
Registered: 2012-09-23
Posts: 3,661
Website

Re: custom data during website browsing

Hi,

Well on initial view it's possible to use these
https://livehelperchat.com/how-to-pass- … -302a.html

But for dynamic passing, i ques you will have to develop custom method or just call API method
https://github.com/LiveHelperChat/liveh … l.php#L936

a. You change these variable through your JS and later in JS just call
b. lh_inst.logPageView();

Theoretically it should work, but no promise smile

Offline

#3 2015-02-18 19:33:35

sledov
Member
Registered: 2014-11-04
Posts: 10

Re: custom data during website browsing

I will try. 10x

Offline

#4 2015-02-18 19:50:09

sledov
Member
Registered: 2014-11-04
Posts: 10

Re: custom data during website browsing

Can you provide any initial guide on how to display these custom vars in the user info in the 'Online visitors' or where can I see what is logged by the logPageView()
Please

Offline

#5 2015-02-18 19:53:00

sledov
Member
Registered: 2014-11-04
Posts: 10

Re: custom data during website browsing

In best case scenario I want to edit the Second Column - Page. Now it shows only the domain. I want to make it change to domain - section

Offline

#6 2015-02-18 19:54:28

remdex
Administrator
From: Lithuania
Registered: 2012-09-23
Posts: 3,661
Website

Re: custom data during website browsing

1. Then you click online user icon in popup you will see some data
Search github for this attribute
online_attr

2. For this one you will have to modify script, override template most likely. How to do that read documentation...

Offline

Board footer