AdWords is now Google Ads. Our new name reflects the full range of advertising options we offer across Search, Display, YouTube, and more. Learn more

Ads
1.3K members online now
1.3K members online now
Improve your Google Ads performance and boost your ROI, CTR, and Quality Score
Guide Me
star_border
Reply

should I put call conversion code to website every page?

Explorer ✭ ✭ ☆
# 1
Explorer ✭ ✭ ☆

Where I have to place call conversion code on website so that I can count my call conversion. 

1 ACCEPTED SOLUTION

Accepted Solutions
Marked as Best Answer.
Solution
Accepted by topic author Pushpendra
September 2015

Re: should I put call conversion code to website every page?

Follower ✭ ✭ ☆
# 4
Follower ✭ ✭ ☆

Hi Pushpendra,

First of all please go to the page on your website that shows the clickable phone number. Then open up the HTML code so you can edit it.

Then Find the body tags (<body></body>) of the page, then paste the code snippet you generated in AdWords between those two tags

Code example:

<!-- Google Code for test Conversion Page
In your html page, add the snippet and call
goog_report_conversion when someone clicks on the
phone number link or button. -->
<script type="text/javascript">
/* <![CDATA[ */
goog_snippet_vars = function() {
var w = window;
w.google_conversion_id = 000000000;
w.google_conversion_label = "je3VVMnv9wYQh72o3AM";
w.google_conversion_value = 0;
}
// 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>

After that you have to adjust the HTML code using a command called "onclick." The particular "onclick" command you use will depend on how the phone number on your mobile website is displayed: text link, image, or button.

Here's some sample code close up:
Simple HTML before conversion tracking code (Sample only. Don't use in your website's code.)

<html>
<head>
<title>Sample HTML File</title>
</head>
<body>
This is the body of your web page.
</body>
</html>
Use the following command if the phone number is shown as:
a text link:
<body>
<!-- Below is sample text link with a phone number. You need to replace the number with your own phone number and the CALL NOW text with the text you want to hyperlink. -->
<a onclick="goog_report_conversion('tel:949-555-1234')" href="#" >CALL NOW</a>
</body>
</html>
an image:
<!-- Below is sample image dialing a phone number. Replace my_phone_button.gif with your button image and the phone numbers with your phone number-->
<body>
<img src="my_phone_button.gif" alt="Call: 949-555-1234" width="32" height="32" onClick="goog_report_conversion('tel:949-555-1234')"/>
</body>
</html>
a button:
<body>
<!-- Below is sample button with a phone number. Replace all call buttons in your page with the code below and replace the phone number with yours. -->
<button onclick="goog_report_conversion('tel:949-555-1234')">Call 949-555-1234</button>
</body>
</html>

For the tracking to work, you'll need to make sure you include both the code snippet and the appropriate 'onclick' tags from one of the examples above. This tells AdWords to record a conversion only when customer clicks on a specific phone number. Without it, no conversion will be recorded!

I hope I am able to solve your problem.

Thanks

 

View solution in original post

Re: should I put call conversion code to website every page?

Follower ✭ ✭ ☆
# 2
Follower ✭ ✭ ☆

Hi Pushpendra,

 

You only need to put conversion code (Not call conversion code) in a thank you page of your website. All you have to do, is to enable Call extensions option for your campaign. 

 

Calls tracked through mobile click-to-call activity as well as manually dialed calls through the forwarding numbers are all tracked in your AdWords data. All calls are recorded under the Dimensions tab and the “Call Details” view.

Re: should I put call conversion code to website every page?

Explorer ✭ ✭ ☆
# 3
Explorer ✭ ✭ ☆

Hi,

 

But when you setup call conversion then Adwords specify that you have to resubmit this code.

Then where I have to put this code? 

Marked as Best Answer.
Solution
Accepted by topic author Pushpendra
September 2015

Re: should I put call conversion code to website every page?

Follower ✭ ✭ ☆
# 4
Follower ✭ ✭ ☆

Hi Pushpendra,

First of all please go to the page on your website that shows the clickable phone number. Then open up the HTML code so you can edit it.

Then Find the body tags (<body></body>) of the page, then paste the code snippet you generated in AdWords between those two tags

Code example:

<!-- Google Code for test Conversion Page
In your html page, add the snippet and call
goog_report_conversion when someone clicks on the
phone number link or button. -->
<script type="text/javascript">
/* <![CDATA[ */
goog_snippet_vars = function() {
var w = window;
w.google_conversion_id = 000000000;
w.google_conversion_label = "je3VVMnv9wYQh72o3AM";
w.google_conversion_value = 0;
}
// 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>

After that you have to adjust the HTML code using a command called "onclick." The particular "onclick" command you use will depend on how the phone number on your mobile website is displayed: text link, image, or button.

Here's some sample code close up:
Simple HTML before conversion tracking code (Sample only. Don't use in your website's code.)

<html>
<head>
<title>Sample HTML File</title>
</head>
<body>
This is the body of your web page.
</body>
</html>
Use the following command if the phone number is shown as:
a text link:
<body>
<!-- Below is sample text link with a phone number. You need to replace the number with your own phone number and the CALL NOW text with the text you want to hyperlink. -->
<a onclick="goog_report_conversion('tel:949-555-1234')" href="#" >CALL NOW</a>
</body>
</html>
an image:
<!-- Below is sample image dialing a phone number. Replace my_phone_button.gif with your button image and the phone numbers with your phone number-->
<body>
<img src="my_phone_button.gif" alt="Call: 949-555-1234" width="32" height="32" onClick="goog_report_conversion('tel:949-555-1234')"/>
</body>
</html>
a button:
<body>
<!-- Below is sample button with a phone number. Replace all call buttons in your page with the code below and replace the phone number with yours. -->
<button onclick="goog_report_conversion('tel:949-555-1234')">Call 949-555-1234</button>
</body>
</html>

For the tracking to work, you'll need to make sure you include both the code snippet and the appropriate 'onclick' tags from one of the examples above. This tells AdWords to record a conversion only when customer clicks on a specific phone number. Without it, no conversion will be recorded!

I hope I am able to solve your problem.

Thanks

 

Re: should I put call conversion code to website every page?

Collaborator ✭ ✭ ✭
# 5
Collaborator ✭ ✭ ✭
This was a great feedback, I am glad to read it.

Re: should I put call conversion code to website every page?

Follower ✭ ✭ ☆
# 6
Follower ✭ ✭ ☆
Thanks Adrian.....

Re: should I put call conversion code to website every page?

Visitor ✭ ✭ ✭
# 7
Visitor ✭ ✭ ✭
Thanks Avik.

But what if you're already tracking the click-to-call via an event in analytics? Do you need to remove it? Or just add goog_report_conversion instead of _gaq.push?

Thanks!