Live Helper Chat support forum.. Forum is locked. New place for questions - Github Discussions
You are not logged in.
Hi guys!
I would like to call the javascript function below when a user sends the first message (Even though the chat was initiated by a proactive message)
[== JavaScript ==]
goog_report_conversion = function(url) {
goog_snippet_vars();
window.google_conversion_format = "3";
var opt = new Object();
opt.onload_callback = function() {
if (typeof(url) != 'undefined') {
window.location = url;
}
}
I already have the function set up and working for a button on the page, but I also want to call it when the chat starts.
Thanks in advance
Last edited by lhs_azevedo (2015-05-11 15:33:39)
Offline
See this, perhaps will help.
https://livehelperchat.com/integration- … -273a.html
Offline
Thank you remdex. I did some testing here and the "start_chat_cb" fires when the user receives a proactive message too. Is there any way to prevent this?
If not, how complex is to create a callback that fires only when the user starts the chat? (When I hear the backend notification).
Offline
Sorry, that's the only callback exists. It's all up to you. They in general should be different ant should be different once started by proactive and normal started. If it does not work. It does not work only for you...
Offline