AdWords
3.1K members online now
3.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

Conversion prices for PHP page ?

Follower ✭ ✭ ✭
# 1
Follower ✭ ✭ ✭

I have many product pages and one thank you page. When someone buy my products, pay then come to thank you page (which page I put conversion tracking code). How I know prices of these conversions ?

 

Although I read "Set up on dynamically-generated webpages" at http://support.google.com/adwords/bin/answer.py?hl=en&answer=1722054&from=115794&rd=1 . But I don't still understand how to setup conversion prices for PHP. 

 

Thank you for your helping.

3 Expert replyverified_user
3 ACCEPTED SOLUTIONS

Accepted Solutions
Marked as Best Answer.
Solution
Accepted by Zee (Community Manager)
September 2015

Re: Conversion prices for PHP page ?

Top Contributor
# 6
Top Contributor

Hi KhanhLa,

 

If you are tracking Analytics goals as conversion, there is no way to assign the actual value of the sale. But, if you are using the AdWords conversion code, you can have your software provide the actual value of the sale.

 

The code you get from Google will look something like this:

 

 

 

<script language="JavaScript" type="text/javascript"> 
var google_conversion_id = 9999999999;
var google_conversion_language = "en_US";
var google_conversion_format = "3";
var google_conversion_color = "ffffff";
var google_conversion_label = "aaaaaaaaaaaaaaaaaaa";
var google_conversion_value = 0;
 if (30) { google_conversion_value = 30; }

</script><noscript> <img height="1" width="1" border="0" src="https://www.googleadservices.com/pagead/conversion/9999999999/?value=30&amp;label=cMonCIfjrgEQqYqi_QM&amp;script=0"/> </noscript>
 <script language="JavaScript" src="https://www.googleadservices.com/pagead/conversion.js"> </script>

Then change the '30' to the actual value of the sale. Note, there are three places you need to fill in the actual value of the sale-- in the if statement, in the google_conversion_value assignment that follows, and in the nosctipr image tag.

 

Best of Luck!

 

Pete

 

petebardo -- Deadhead doing AdWords

View solution in original post

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

Re: Conversion prices for PHP page ?

Top Contributor
# 7
Top Contributor

Hi 

 

What Asaf described was creating conversion code that included a PHP expression (like the cart revenue) that would allow the revenue data to be pulled and included with your conversion data.  See page 15 of this conversion tracking guide for detail on PHP https://static.googleusercontent.com/external_content/untrusted_dlcp/www.google.com/en/us/intl/en_us...

 

You can also use Ecommerce Tracking through Google analytics:

http://code.google.com/apis/analytics/docs/tracking/gaTrackingEcommerce.html



Kim Clink, AdWords Top Contributor | Community Profile | Twitter | Clink Digital Marketing
Did you find any helpful responses or answers to your query? If yes, please mark it as the 'Best Answer.'

View solution in original post

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

Re: Conversion prices for PHP page ?

Top Contributor
# 10
Top Contributor

I agree with Calin about probably needing someone to help with this.

 

To help you wrap your head around the whole idea...

 

your shopping cart pages are setup in PHP and basically call info to be pulled into the page to populate the page with data from other sources.  The total value is calculated and added up through the checkout process and stored under the <? echo totalValue?> variable.   This way the data can be carried forward to the next page and next page and finally the last page of the checkout process where all your data is displayed on the page.  If you were to look at the behind the scenes PHP for the checkout confirmation page it may look something like this:

 

Thanks for your order:

 

Name: <name variable>  the name entered during the order process session is pulled into the page

Address: <? address>

city <? city>

state <state?

zip <zip

 

items ordered:  <?items ordered>

sub Total:  <sub total>

shipping: <shipping>

Total Order:  <? total value>

 

Now the variables may be labeled differently depending on the way the cart was designed but the idea is consistent.  Pulling data from one place and plunking it on another page to continue the flow.

 

Sometimes you want to track the total value sometimes the subtotal value.  Personally I don't want to consider my clients total revenue because it includes shipping fees and those are not revenue.

 

I know it can be a little overwhelming, and yes it sounds like you will need some help from a programmer or whomever handles your site shopping cart but once they understand what you want to do they should be able to help you get this done pretty easily.  Hopefully the explanation above gives you a better idea of how it all works.



Kim Clink, AdWords Top Contributor | Community Profile | Twitter | Clink Digital Marketing
Did you find any helpful responses or answers to your query? If yes, please mark it as the 'Best Answer.'

View solution in original post

Re: Conversion prices for PHP page ?

Zee Community Manager
Community Manager
# 2
Zee Community Manager
Community Manager

Hi KhanhLa

 

The conversion value needs to be set up in the settings of your conversion tracking code. Go back to your account. Click on the conversion tracking that you set up. Click the settings and check if you see any monetary value next to the conversion value. If not, click "edit settings" and input the value. 

 

 

Best,

Zee
G+

Re: Conversion prices for PHP page ?

[ Edited ]
Follower ✭ ✭ ✭
# 3
Follower ✭ ✭ ✭

Thanks Zee

 

But my web has many product prices. What price should I input ? 

Re: Conversion prices for PHP page ?

Participant ✭ ✭ ☆
# 4
Participant ✭ ✭ ☆

Hey,

 

try this:

 

"If your site has a variable conversion value, determine the PHP expression that displays that value. For example: <?php echo $totalValue ?>, <? echo totalValue ?>"

 

you can find more information here: http://support.google.com/adwords/bin/answer.py?hl=en&answer=1722054

 

Good luck,

 

Asaf

 

 

Re: Conversion prices for PHP page ?

Follower ✭ ✭ ✭
# 5
Follower ✭ ✭ ✭

But I still not understand process : 

 

"If your site has a variable conversion value, determine the PHP expression that displays that value. For example: <?php echo $totalValue ?>, <? echo totalValue ?>" What does it mean ?

Marked as Best Answer.
Solution
Accepted by Zee (Community Manager)
September 2015

Re: Conversion prices for PHP page ?

Top Contributor
# 6
Top Contributor

Hi KhanhLa,

 

If you are tracking Analytics goals as conversion, there is no way to assign the actual value of the sale. But, if you are using the AdWords conversion code, you can have your software provide the actual value of the sale.

 

The code you get from Google will look something like this:

 

 

 

<script language="JavaScript" type="text/javascript"> 
var google_conversion_id = 9999999999;
var google_conversion_language = "en_US";
var google_conversion_format = "3";
var google_conversion_color = "ffffff";
var google_conversion_label = "aaaaaaaaaaaaaaaaaaa";
var google_conversion_value = 0;
 if (30) { google_conversion_value = 30; }

</script><noscript> <img height="1" width="1" border="0" src="https://www.googleadservices.com/pagead/conversion/9999999999/?value=30&amp;label=cMonCIfjrgEQqYqi_QM&amp;script=0"/> </noscript>
 <script language="JavaScript" src="https://www.googleadservices.com/pagead/conversion.js"> </script>

Then change the '30' to the actual value of the sale. Note, there are three places you need to fill in the actual value of the sale-- in the if statement, in the google_conversion_value assignment that follows, and in the nosctipr image tag.

 

Best of Luck!

 

Pete

 

petebardo -- Deadhead doing AdWords
Marked as Best Answer.
Solution
Accepted by topic author KhanhLa
September 2015

Re: Conversion prices for PHP page ?

Top Contributor
# 7
Top Contributor

Hi 

 

What Asaf described was creating conversion code that included a PHP expression (like the cart revenue) that would allow the revenue data to be pulled and included with your conversion data.  See page 15 of this conversion tracking guide for detail on PHP https://static.googleusercontent.com/external_content/untrusted_dlcp/www.google.com/en/us/intl/en_us...

 

You can also use Ecommerce Tracking through Google analytics:

http://code.google.com/apis/analytics/docs/tracking/gaTrackingEcommerce.html



Kim Clink, AdWords Top Contributor | Community Profile | Twitter | Clink Digital Marketing
Did you find any helpful responses or answers to your query? If yes, please mark it as the 'Best Answer.'

Re: Conversion prices for PHP page ?

Follower ✭ ✭ ✭
# 8
Follower ✭ ✭ ✭

Thanks all, when I read document I still dont understand <? echo totalValue ?>. Could you explain to me more detail about this variable?

Re: Conversion prices for PHP page ?

Top Contributor
# 9
Top Contributor

Hello.

 

In order to make this work, you need to be able to code in PHP, and to understand exactly where your shopping cart solution stores the order value.

 

That is solution-dependant, meaning that each shop may store it in a value with a different name. If you are not a programmer, and cannot find what variable stores the total transaction value, in order to be able to place it where Pete has told you, you will need a programmer to do it for you.

Calin Sandici, AdWords Top Contributor | Find me on: Google+ | Twitter | LinkedIn | myBlog
Was my response helpful? If yes, please mark it as the ‘Best Answer.’ Learn how here.
Marked as Best Answer.
Solution
Accepted by topic author KhanhLa
September 2015

Re: Conversion prices for PHP page ?

Top Contributor
# 10
Top Contributor

I agree with Calin about probably needing someone to help with this.

 

To help you wrap your head around the whole idea...

 

your shopping cart pages are setup in PHP and basically call info to be pulled into the page to populate the page with data from other sources.  The total value is calculated and added up through the checkout process and stored under the <? echo totalValue?> variable.   This way the data can be carried forward to the next page and next page and finally the last page of the checkout process where all your data is displayed on the page.  If you were to look at the behind the scenes PHP for the checkout confirmation page it may look something like this:

 

Thanks for your order:

 

Name: <name variable>  the name entered during the order process session is pulled into the page

Address: <? address>

city <? city>

state <state?

zip <zip

 

items ordered:  <?items ordered>

sub Total:  <sub total>

shipping: <shipping>

Total Order:  <? total value>

 

Now the variables may be labeled differently depending on the way the cart was designed but the idea is consistent.  Pulling data from one place and plunking it on another page to continue the flow.

 

Sometimes you want to track the total value sometimes the subtotal value.  Personally I don't want to consider my clients total revenue because it includes shipping fees and those are not revenue.

 

I know it can be a little overwhelming, and yes it sounds like you will need some help from a programmer or whomever handles your site shopping cart but once they understand what you want to do they should be able to help you get this done pretty easily.  Hopefully the explanation above gives you a better idea of how it all works.



Kim Clink, AdWords Top Contributor | Community Profile | Twitter | Clink Digital Marketing
Did you find any helpful responses or answers to your query? If yes, please mark it as the 'Best Answer.'