AdWords
2.1K members online now
2.1K members online now
Use AdWords conversion tracking and reporting to measure your results. Have a question about Google Analytics? Post it here, on the Google Analytics Community!
Guide Me
star_border
Reply

code showing error

Visitor ✭ ✭ ✭
# 1
Visitor ✭ ✭ ✭

I am using following script in  a ifame and caaling on button click as:

<asp:Button ID="btnsubmit" Text="Send Request" runat="server" OnClick="btnsubmit_Click"
OnClientClick="goog_report_conversion('tel:1-866-864-8488');return ValidateForm();" />. But this show error in tag assistant.

 

<script type="text/javascript">
/* <![CDATA[ */
goog_snippet_vars = function() {
var w = window;
w.google_conversion_id = 1032215456;
w.google_conversion_label = "BC03CKrZ_wYQoLeZ7AM";
w.google_conversion_value = 0;
w.google_remarketing_only = false;
}
// DO NOT CHANGE THE CODE BELOW.
goog_report_conversion = function(url) {

goog_snippet_vars();
window.google_conversion_format = "3";
window.google_is_call = true;
var opt = new Object();
opt.onload_callback = function() {
if (typeof(url) != 'undefined') {
window.location = url;
}
}
var conv_handler = window['google_trackConversion'];
if (typeof(conv_handler) == 'function') {
conv_handler(opt);
}
}
/* ]]> */
</script>
<script type="text/javascript"
src="http://www.googleadservices.com/pagead/conversion_async.js">
</script>

Re: code showing error

Follower ✭ ✭ ✭
# 2
Follower ✭ ✭ ✭

Hi there ,

 

I suspect that the error is about the fact that in the button the function 

 

goog_report_conversion receives as parameter a phone number

 

OnClientClick="goog_report_conversion('tel:1-866-864-8488')

 

and inside the code it requires an URL 

 

goog_report_conversion = function(url)

 

 

Can you tell exactly what the error says in the tag assistant ?