AdWords
4.8K members online now
4.8K 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

Dynamic Conversion Tracking Value

Follower ✭ ✭ ☆
# 1
Follower ✭ ✭ ☆

I am setting up conversion tracking for an ecomm client - let's call them 'Acme Fun'.  Acme Fun sells thousands of products and we want to track the conversion value based on the sale/cart total of each successful purchase resulting from adwords clicks and track ROI- so these values will all be different.

 

I know how to set up conversion tracking in adwords and set a static 'value' but in researching adding a 'dynamic' value for the conversion code I will need to change the server side variable name and account for the back-end programming language - like below. BUT if I do this how does Adwords know how to track this code if it is not generated by adwords? i.e. my 'new' revised code is different than what the adwords conversion tool generates.

 

Plus, i see everytime a new conversion code is generated the "ID" is the same but the 'label' is different - so if i generate my own code with dynamic tracking (below) what label do i use?

 

Plus, do i need to set-up anything special in Google Analytics to track these conversions?

 

I am super new to conversion tracking and not sure what set-up requirements i need to adhere to in order dynamically track the final sale value of the sale resulting from an ad click. Any step by step is greatly appreciated.

 

Thanks!

 

<!-- Google Code for Purchase Conversion Page -->

<script type=”text/javascript”>

/* <![CDATA[ */

var google_conversion_id = 123456789;

var google_conversion_language = "en";

var google_conversion_format = "2";

var google_conversion_color = "ffffff";

var google_conversion_label = "AAAAAAAAAAAAAAAAAAA";

var google_conversion_value = 0;

if (<%total_value%>) {   google_conversion_value = <%total_value%>;   }

/* ]]> */

</script>

<script type=”text/javascript”src=”http://www.googleadservices.com/pagead/conversion.js”>   </script>

<noscript>

<div style=”display:inline;”>

<img height=”1″ width=”1″ style=”border-style:none;” alt=”"src=”http://www.googleadservices.com/pagead/conversion/   123456789/?value=<%total_value%>&label=

AAAAAAAAAAAAAAAAAAA&guid=ON&script=0″/>   </div>

</noscript>

2 Expert replyverified_user
2 ACCEPTED SOLUTIONS

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

Re: Dynamic Conversion Tracking Value

Top Contributor
# 2
Top Contributor
Hey Jeff,
Conversion Label doesn't have to change. And I wouldn't if I were you. Leave it as is. "Sale" or "Conversion" or whatever.

What you need to change is the <%total_value%>
What you'll do is you'll assign the total value to a variable (in fact, in most shopping cart programs, it already is). Then you output/parse that value into the javascript in place of <%total_value%>

That's all you need to do. The script will pass back to AdWords the value of whatever is in that field.

View solution in original post

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

Re: Dynamic Conversion Tracking Value

Top Contributor
# 4
Top Contributor
Hi Jeff,

I believe the label must be as it shows on the conversion code provided by Google. The only thing you want to change is the <%total_value%>. The name of the variable and how you get it onto the page depends on your shopping cart software.

Make sure you get this right. If you misspell the variable name, or if the variable returns an empty string/value, the conversion will not be recorded at all. Instead, this code will throw an error.

Best of Luck!

Pete
petebardo -- Deadhead doing AdWords

View solution in original post

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

Re: Dynamic Conversion Tracking Value

Top Contributor
# 2
Top Contributor
Hey Jeff,
Conversion Label doesn't have to change. And I wouldn't if I were you. Leave it as is. "Sale" or "Conversion" or whatever.

What you need to change is the <%total_value%>
What you'll do is you'll assign the total value to a variable (in fact, in most shopping cart programs, it already is). Then you output/parse that value into the javascript in place of <%total_value%>

That's all you need to do. The script will pass back to AdWords the value of whatever is in that field.

Re: Dynamic Conversion Tracking Value

Follower ✭ ✭ ☆
# 3
Follower ✭ ✭ ☆
wow - thanks for the response.

just to confirm - the label does NOT matter - i.e. i can make it anything i want?
and will adwords reconize this in my conversion section of adwords so i can track it - it just seems like i would need to get the code from adwords as i create the code in conversion under 'Tools & Analysis" - i know i don't but i want to make sure I understand ALL steps needed to take in order to track it correctly. Again - thanks!
Marked as Best Answer.
Solution
Accepted by topic author Jeff M
September 2015

Re: Dynamic Conversion Tracking Value

Top Contributor
# 4
Top Contributor
Hi Jeff,

I believe the label must be as it shows on the conversion code provided by Google. The only thing you want to change is the <%total_value%>. The name of the variable and how you get it onto the page depends on your shopping cart software.

Make sure you get this right. If you misspell the variable name, or if the variable returns an empty string/value, the conversion will not be recorded at all. Instead, this code will throw an error.

Best of Luck!

Pete
petebardo -- Deadhead doing AdWords

Re: Dynamic Conversion Tracking Value

Follower ✭ ✭ ☆
# 5
Follower ✭ ✭ ☆
perfect! thanks!

Re: Dynamic Conversion Tracking Value

Follower ✭ ✭ ☆
# 6
Follower ✭ ✭ ☆
as a last follow-up to this topic - where exactly do i place this code? is it just 1 placement on the checkout page? thanks for any help you can provide!