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

You are not logged in.

Announcement

#1 2014-02-25 15:26:39

Robotics445
Member
Registered: 2014-02-25
Posts: 64

Integration with Google Analytics event tracking

Hi, how would I go about integrating livehelperchat with Google Analytics events so that (e.g.) when the user clicks the 'Start Chat' button, an event is recorded within analytics?

Many thanks smile


https://groups.google.com/forum/#!topic … 6F1Vb4NpK4

Offline

#2 2014-02-25 15:57:23

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

Re: Integration with Google Analytics event tracking

Could you give me sample how adsense code should look like?
But it's perfectly doable smile

2014-02-25 16:26 GMT+02:00  <jav...***.com>:

Hi, how would I go about integrating livehelperchat with Google Analytics events so that (e.g.) when the user clicks the 'Start Chat' button, an event is recorded within analytics?


Many thanks smile


Offline

#3 2014-02-25 16:02:50

Robotics445
Member
Registered: 2014-02-25
Posts: 64

Re: Integration with Google Analytics event tracking

Thanks so much for getting back to me smile
From what I read on the google analytics site at:
https://developers.google.com/analytics/devguides/collection/gajs/eventTrackerGuide#SettingUpEventTracking
the template to use for tracking clickable links is _trackEvent(category, action, opt_label, opt_value, opt_noninteraction)
...so maybe it would need customisation of the 'Send' button click link with something like:
<a href="#" onClick="_gaq.push(['_trackEvent', 'Livechat', 'StartChat', 'LiveHelperChat', '1']);">Send</a>

...is this possible?
Thank you smile

On Tuesday, February 25, 2014 2:26:39 PM UTC, Robotics445 wrote:Hi, how would I go about integrating livehelperchat with Google Analytics events so that (e.g.) when the user clicks the 'Start Chat' button, an event is recorded within analytics?

Many thanks smile

Offline

#4 2014-02-27 11:04:01

Robotics445
Member
Registered: 2014-02-25
Posts: 64

Re: Integration with Google Analytics event tracking

Hi, any more thoughts on how to implement this much appreciated smile

Thanks


Offline

#5 2014-03-01 17:47:26

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

Re: Integration with Google Analytics event tracking

Hi,

http://livehelperchat.com/integration-with-google-analytics-event-tracking-273a.html
Related commit

https://github.com/LiveHelperChat/livehelperchat/commit/e70c564c39d6519aa66501d1f71ef7e73b8609ed




2014-02-27 12:04 GMT+02:00 Stewart Robertson <jav...***.com>:

Offline

#6 2014-03-01 19:43:34

Robotics445
Member
Registered: 2014-02-25
Posts: 64

Re: Integration with Google Analytics event tracking

    Wow, this is ace!!...gonna try this out, thank you so much! smile smile

         

         

       

Offline

#7 2014-03-06 10:28:51

Robotics445
Member
Registered: 2014-02-25
Posts: 64

Re: Integration with Google Analytics event tracking

Hi, I've tried using the following code in our header file:

<script type="text/javascript">
var LHCChatOptions = {};
LHCChatOptions.opt = {widget_height:340,widget_width:300,popup_height:520,popup_width:500};

LHCChatOptions.callback = {start_chat_cb:function(type){
     _gaq.push(['_trackEvent', 'LiveHelperChat', 'StartChat', type]);
}}
(function() {
var po = document.createElement('script'); po.type = 'text/javascript'; po.async = true;

var refferer = (document.referrer) ? encodeURIComponent(document.referrer) : '';
var location  = (document.location) ? encodeURIComponent(document.location) : '';
po.src = 'http://rehabguide.co.uk/livechat/index.php/chat/getstatus/(click)/internal/(position)/bottom_right/(top)/350/(units)/pixels/(leaveamessage)/true/(department)/1?r='+refferer+'&l='+location;

var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(po, s);
})();
</script>

...but it stops the livechat widget from appearing at all, have I intergrated the event tracking code correctly?


Thanks smile

Offline

#8 2014-03-06 10:35:32

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

Re: Integration with Google Analytics event tracking

Sorry, without page to see where code is embedded i do not know.

2014-03-06 11:28 GMT+02:00 Stewart Robertson <jav...***.com>:

Offline

#9 2014-03-06 10:49:19

Robotics445
Member
Registered: 2014-02-25
Posts: 64

Re: Integration with Google Analytics event tracking

Hi Remigijus, sorry, the page is at http://www.rehabguide.co.uk, wordpress site, I've added the code to the header.php file. Really appreciate your guidance. Thank you.




Offline

#10 2014-03-06 11:43:19

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

Re: Integration with Google Analytics event tracking

I do not see callback there at the moment,

2014-03-06 11:49 GMT+02:00 Stewart Robertson <jav...***.com>:

Offline

#11 2014-03-06 11:54:45

Robotics445
Member
Registered: 2014-02-25
Posts: 64

Re: Integration with Google Analytics event tracking

Apologies it is now on there. Thanks


Offline

#12 2014-03-06 12:00:15

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

Re: Integration with Google Analytics event tracking

Please add ";" after }}
}};(function() {



2014-03-06 12:54 GMT+02:00 Stewart Robertson <jav...***.com>:

Offline

#13 2014-03-06 12:03:07

Robotics445
Member
Registered: 2014-02-25
Posts: 64

Re: Integration with Google Analytics event tracking

Superb! Now working....thank you so much smile


Offline

#14 2014-06-30 11:57:11

Robotics445
Member
Registered: 2014-02-25
Posts: 64

Re: Integration with Google Analytics event tracking

Hi Remigijus,Is there a way I can update this event tracking code to track when a user submits an *offline* email form?
With many thanks,
- Stewart

Offline

#15 2014-06-30 12:49:38

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

Re: Integration with Google Analytics event tracking

Hi,

There is no such event, but if you need one, you can fill github feature request.

Offline

#16 2014-07-03 12:52:08

Robotics445
Member
Registered: 2014-02-25
Posts: 64

Re: Integration with Google Analytics event tracking

hi remdex, since updating to latest livechat version, my admin home page no longer shows current chats, menu options, etc:
https://dl.dropboxusercontent.com/u/90534254/Temp/LivechatBlankAdminScreen.JPG

Previous version was 1.86.
Is this normal? How would i show the main admin screen again? Any ideas what files may be affected or how to resolve pls?

Thanks again smile






Offline

#17 2014-07-03 12:56:54

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

Re: Integration with Google Analytics event tracking

http://livehelperchat.com/during-some-action-app-returns-white-screen-what-to-do-215a.html
And try to follow B option of update.

http://livehelperchat.com/article/view/63

Also clear cache. But i ques if you have overridden some files, they were changed in recent versions. Especially page footer.


Offline

#18 2014-07-03 13:01:58

Robotics445
Member
Registered: 2014-02-25
Posts: 64

Re: Integration with Google Analytics event tracking

Thanks!...I will try these, what files involved in footer please?

Offline

#19 2014-07-03 13:04:07

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

Re: Integration with Google Analytics event tracking

http://livehelperchat.com/after-i-have-updated-to-1.96v-i-see-strange-variables-instead-of-chats-304a.html


Offline

#20 2014-07-03 13:46:46

Robotics445
Member
Registered: 2014-02-25
Posts: 64

Re: Integration with Google Analytics event tracking

hi Remdex, I've updated everything as per version B instructions, footer file looks ok.
Error log:
https://dl.dropboxusercontent.com/u/90534254/Temp/RHG_LivechatErrorLog.txt


Any ideas what I could try now?
Thanks

On 3 July 2014 11:56, Remigijus Kiminas <rem...***.com> wrote:

Offline

#21 2014-07-03 13:48:52

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

Re: Integration with Google Analytics event tracking

Just create a fresh copy of this "extension/unbrand/design/unbrandtheme/tpl/pagelayouts/parts/page_footer.tpl.php"
copy it from defaulttheme and then unbrand. Or you can just remove it.
Also you can try to disable unbrand extension as a whole to see does it helps.

Offline

#22 2014-07-03 14:46:23

Robotics445
Member
Registered: 2014-02-25
Posts: 64

Re: Integration with Google Analytics event tracking

Thank you! I've disabled custom theme, and updated missing files, how does this log look:
https://dl.dropboxusercontent.com/u/90534254/Temp/RHG_LivechatErrorLog2.txt


...anything else I need to do?
Thanks smile

Offline

#23 2014-07-03 14:49:14

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

Re: Integration with Google Analytics event tracking

It should be ok. Anyway really without personal look i don't know. Try just completely change desgn folder. Then definetely all will work. smile

Offline

#24 2014-07-03 14:57:08

Robotics445
Member
Registered: 2014-02-25
Posts: 64

Re: Integration with Google Analytics event tracking

Hi, this is what I see,
https://dl.dropboxusercontent.com/u/90534254/Temp/2014-07-03%2013_54_13-Live%20Helper%20Chat%20-%20live%20support%20-%20Waterfox.png



Will the areas for closed and pending chats return when chats come in?
Also, any way to export email addresses of users out of livehelperchat in bulk?

With thanks


Offline

#25 2014-07-03 14:59:08

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

Re: Integration with Google Analytics event tracking

Hi,

Yes areas returns if there is some data.
No way to export, but you can fill github feature request if you want it.

Offline

Board footer