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

How to fix conversion value for dynamic sales amount?

Visitor ✭ ✭ ✭
# 1
Visitor ✭ ✭ ✭

As per my business requirement, I have to fix my rate at the time of sales. 

 

Is it any possible to track this action in my conversion tracker? 

 

Because what I understood about conversion tracking is that we can fix standard sale value when we are creating conversion tracker and system will pick up that amount as conversion value when any sales happen.

 

 I don't have standard sale value and everything will be fixed at the time of sales.

 

Please someone clarify my doubt.

1 Expert replyverified_user

Re: How to fix conversion value for dynamic sales amount?

Top Contributor
# 2
Top Contributor

Hi vishwasaibaba,

 

You can fill that amount in from your shopping cart. Something like this (php):

 

<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 = "adsfklafdsdaflk";
	if ('<%php echo $grandtotal %>') {
	  var google_conversion_value = '<%php echo $grandtotal %>';
	}
</script>
<script language="JavaScript" src="https://www.googleadservices.com/pagead/conversion.js">
</script>
<noscript>
<img height="1" width="1" border="0" src="https://www.googleadservices.com/pagead/conversion/1068008745/?value=<%php echo $grandtotal %>&amp;label=cMonCIfjrgEQqYqi_QM&amp;script=0"/>
</noscript>

 How exactly youare to do this depends on your shopping cart software.

 

Best of Luck!

 

Pete

 

petebardo -- Deadhead doing AdWords

Re: How to fix conversion value for dynamic sales amount?

Visitor ✭ ✭ ✭
# 3
Visitor ✭ ✭ ✭

Thanks for your reply!

 

I would like to understand more about working of the snippet you have given.

 

a)  Can you please clarify how this snippet works in real time scenario with live examples?

 

b)  If i put zero value in "Conversion value" field, then what would be the result I can see in the total conversion value column.

 

Please clarify.

Re: How to fix conversion value for dynamic sales amount?

Collaborator ✭ ☆ ☆
# 4
Collaborator ✭ ☆ ☆

Hi I can verify that this snippet has worked for me in several projects

To $grandtotal returns 0 then it will add 0 in the conversion value if $grandtotal returns 100 then 100 will be added in the conversion value

Regards

nik

 

 

Regards, Nik
LinkedIn  |   @nikhilparachure | My Blog

Re: How to fix conversion value for dynamic sales amount?

Top Contributor
# 5
Top Contributor

Hi vishwasaibaba,

 

I'm afraid I can not be any more specific nor can I provide specific examples of how to use the code as it depends on the shopping cart software how this gets done. It needs to be done on the server side, not on the client side. Usually, your shopping cart has a template page and makes certain variables available for inclusion on the templates. You'll need to look through the cart software documentation to find out speifcally how to do this in your case.

 

Best of Luck!

 

Pete

 

petebardo -- Deadhead doing AdWords