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

You are not logged in.

Announcement

#1 2015-05-11 15:31:17

lhs_azevedo
Member
Registered: 2015-03-16
Posts: 4

Google Adwords conversion when user sends the first message

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 wink

Last edited by lhs_azevedo (2015-05-11 15:33:39)

Offline

#2 2015-05-11 15:42:44

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

Re: Google Adwords conversion when user sends the first message

Offline

#3 2015-05-11 17:47:20

lhs_azevedo
Member
Registered: 2015-03-16
Posts: 4

Re: Google Adwords conversion when user sends the first message

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

#4 2015-05-11 18:00:49

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

Re: Google Adwords conversion when user sends the first message

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

Board footer