AdWords Conversion Tracking Codes
AdWords Conversion Tracking Codes
Hello,
What is the proper way to implement conversion tracking codes on an Ablecommerce Gold R6? I currently have a conversion code implemented on the receipt.aspx page which I added via FTP. However, it doesn't seem to be firing correctly and seems to attribute conversions to the wrong item (Google PLA'S) as well.
What is the proper way to implement conversion tracking codes on an Ablecommerce Gold R6? I currently have a conversion code implemented on the receipt.aspx page which I added via FTP. However, it doesn't seem to be firing correctly and seems to attribute conversions to the wrong item (Google PLA'S) as well.
Re: AdWords Conversion Tracking Codes
Hello again,
I was wondering if a developer could chime in on the proper placement of an AdWords Conversion Code on an AbleCommerce Gold R6 store.
I was wondering if a developer could chime in on the proper placement of an AdWords Conversion Code on an AbleCommerce Gold R6 store.

Re: AdWords Conversion Tracking Codes
Hi Kris7,
Can you please share the code that isn't working for you?
Can you please share the code that isn't working for you?
Re: AdWords Conversion Tracking Codes
The biggest issue is knowing where to implement the code, it should go in the <head> section according to Google's best practices to ensure it fires off at the right time. Right now it's on the check out order finished page .aspx file in the <body> and a few weeks ago it seems to have attributed conversions to the wrong product. Furthermore, Google's Tag Assistant detects it as a non-standard implementation. I just want to know what AbleCommerce's best practice is for implementing this code on their platform.
Code: Select all
<!-- Google Code for GS Sales Conversion Page -->
<script type="text/javascript">
/* <![CDATA[ */
var google_conversion_id = ##########;
var google_conversion_language = "en";
var google_conversion_format = "3";
var google_conversion_color = "ffffff";
var google_conversion_label = "c9YQCIKwr14Qnq7y3gM";
var google_remarketing_only = false;
/* ]]> */
</script>
<script type="text/javascript" src="//www.googleadservices.com/pagead/conversion.js">
</script>
<noscript>
<div style="display:inline;">
<img height="1" width="1" style="border-style:none;" alt="" src="//www.googleadservices.com/pagead/conversion/##########/?label=c9YQCIKwr14Qnq7y3gM&guid=ON&script=0"/>
</div>
</noscript>
Re: AdWords Conversion Tracking Codes
Hello,
If Google has instructions to put the code in the <head> section, then it would seem that this is where it needs to go. The code is Javascript and putting it in the <body> doesn't seem right.
If Google has instructions to put the code in the <head> section, then it would seem that this is where it needs to go. The code is Javascript and putting it in the <body> doesn't seem right.
Which page are you referring to? Is this the receipt.aspx page?check out order finished page .aspx
Thank you for choosing AbleCommerce!
http://help.ablecommerce.com - product support
http://wiki.ablecommerce.com - developer support
http://help.ablecommerce.com - product support
http://wiki.ablecommerce.com - developer support
Re: AdWords Conversion Tracking Codes
Here's the instructions from AdWords:
Install your tag
To install, copy the code in the box below and paste it between the <body></body> tags of the page you'd like to track. You can then use Google Tag Assistant plugin on Chrome to ensure your code is correctly placed.
Here is a link to their instructions: https://support.google.com/adwords/answ ... 2786649951
You will see the code needs to go in the body section, not the head.
Google Tag Manager code needs to go in the body also.
Install your tag
To install, copy the code in the box below and paste it between the <body></body> tags of the page you'd like to track. You can then use Google Tag Assistant plugin on Chrome to ensure your code is correctly placed.
Here is a link to their instructions: https://support.google.com/adwords/answ ... 2786649951
You will see the code needs to go in the body section, not the head.
Google Tag Manager code needs to go in the body also.
Contractor's Solutions
www. contractors-solutions.net
www. contractors-solutions.net
- jmestep
- AbleCommerce Angel
- Posts: 8164
- Joined: Sun Feb 29, 2004 8:04 pm
- Location: Dayton, OH
- Contact:
Re: AdWords Conversion Tracking Codes
On one site, we put the conversion code into a new conlib and then put that at the bottom of the receipt page under Able's AffiliateTracker conlib and it works fine. Their syntax is a little different from your sample, probably because it is older. You could probably put it in the receipt page itself, but this site is tracking other things like Bing and Yahoo, also, so I just made a new conlib.
Judy Estep
Web Developer
jestep@web2market.com
http://www.web2market.com
708-653-3100 x209
New search report plugin for business intelligence:
http://www.web2market.com/Search-Report ... -P154.aspx
Web Developer
jestep@web2market.com
http://www.web2market.com
708-653-3100 x209
New search report plugin for business intelligence:
http://www.web2market.com/Search-Report ... -P154.aspx
Re: AdWords Conversion Tracking Codes
Yes, the tracking code must be placed inside the <body> </body> tags as instructed by Google. First of all, an Adwords account need to be configured from here https://support.google.com/adwords/answ ... 21#get_tag. If you want to track transaction-specific conversion, you have to follow the instruction provided in https://support.google.com/adwords/answer/6095947?hl=en as well.
I have created a sample ConversionTracking control that need to be placed inside Conlib/Custom directory. After this put the control at Checkout/Receipt.aspx below the AffiliateTracker conlib as suggested by Judy.
You just need to update control parameter values to the ones generated for your tag during conversion tacking setup (in the box, below Install your tag). Hopefully it will work as expected. Let me know if you have any issues installing this.
I have created a sample ConversionTracking control that need to be placed inside Conlib/Custom directory. After this put the control at Checkout/Receipt.aspx below the AffiliateTracker conlib as suggested by Judy.
You just need to update control parameter values to the ones generated for your tag during conversion tacking setup (in the box, below Install your tag). Hopefully it will work as expected. Let me know if you have any issues installing this.
Re: AdWords Conversion Tracking Codes
Thanks. I will try it.
Should we leave the var google_conversion_value = <%= Currency%> <%= TotalValue%> or is that supposed to be changed to something like:
var google_conversion_value = 1.00;
var google_conversion_currency = "USD";
Should we leave the var google_conversion_value = <%= Currency%> <%= TotalValue%> or is that supposed to be changed to something like:
var google_conversion_value = 1.00;
var google_conversion_currency = "USD";
Contractor's Solutions
www. contractors-solutions.net
www. contractors-solutions.net
Re: AdWords Conversion Tracking Codes
When I try to put that in my Receipt.aspx page, do I need to put
at the top?
Code: Select all
<%@ Register Src="~/ConLib/ConversionTracking.ascx" TagName="ConversionTracking" TagPrefix="uc" %>
Contractor's Solutions
www. contractors-solutions.net
www. contractors-solutions.net
Re: AdWords Conversion Tracking Codes
No, you don't need to change them. These values will be changed dynamically for the order.Should we leave the var google_conversion_value = <%= Currency%> <%= TotalValue%> or is that supposed to be changed
You have to make two updates here. First locateWhen I try to put that in my Receipt.aspx page, do I need to put
<%@ Register Src="~/ConLib/ConversionTracking.ascx" TagName="ConversionTracking" TagPrefix="uc" %>
Code: Select all
<%@ Register Src="~/ConLib/Checkout/AffiliateTracker.ascx" TagName="AffiliateTracker" TagPrefix="uc" %>
Code: Select all
<%@ Register Src="~/ConLib/Checkout/AffiliateTracker.ascx" TagName="AffiliateTracker" TagPrefix="uc" %>
<%@ Register Src="~/ConLib/Custom/ConversionTracking.ascx" TagPrefix="uc" TagName="ConversionTracking" %>
Note that I am using ~/ConLib/Custom/ConversionTracking.ascx because I have put my conversion tracking control inside conlib/custom directory.
Secondly, locate
Code: Select all
<uc:AffiliateTracker ID="AffiliateTracker" runat="server" />
Code: Select all
<uc:AffiliateTracker ID="AffiliateTracker" runat="server" />
<uc:ConversionTracking runat="server" id="ConversionTracking" />
Make sure to update ######## in below code with the actual values as well.
Code: Select all
<img height="1" width="1" style="border-style:none;" alt="" src="//www.googleadservices.com/pagead/conversion/#########/?value=<%= TotalValue%>¤cy_code=<%= Currency%>&label=#############&guid=ON&script=0"/>
Re: AdWords Conversion Tracking Codes
Thanks nadeem, that seems to work. When I view the Receipt page and look at the source code, I see the values. The only thing is, it is Total Value which includes tax and shipping. Is there a way to get the subtotal?
Contractor's Solutions
www. contractors-solutions.net
www. contractors-solutions.net
Re: AdWords Conversion Tracking Codes
Yes, for subtotal as a TotalValue, you have to replace
To
Code: Select all
TotalValue = order.TotalCharges;
Code: Select all
TotalValue = order.ProductSubTotal;
Re: AdWords Conversion Tracking Codes
Thanks again Nadeem, but when I do that it breaks the page.
I am assuming that it is line 8 of the ConversionTracking.ascx that needs to be changed.
I am assuming that it is line 8 of the ConversionTracking.ascx that needs to be changed.
Contractor's Solutions
www. contractors-solutions.net
www. contractors-solutions.net
Re: AdWords Conversion Tracking Codes
Sorry, there was a small mistake in the line of code. It should be
ProductSubtotal 't' should be in lower case.
Code: Select all
TotalValue = order.ProductSubtotal;
Re: AdWords Conversion Tracking Codes
Thanks again Nadeem. I guess that one little capital T messed it up.
Now, it would be nice to get Remarketing working. It must be installed on ALL pages and needs parameters for the following:
Any ideas on how to get this working?
Now, it would be nice to get Remarketing working. It must be installed on ALL pages and needs parameters for the following:
Code: Select all
<!-- Google Code for Remarketing Tag -->
<!--------------------------------------------------
Remarketing tags may not be associated with personally identifiable information or placed on pages related to sensitive categories. See more information and instructions on how to setup the tag on: http://google.com/ads/remarketingsetup
--------------------------------------------------->
<script type="text/javascript">
var google_tag_params = {
ecomm_prodid: 'REPLACE_WITH_VALUE',
ecomm_pagetype: 'REPLACE_WITH_VALUE',
ecomm_totalvalue: 'REPLACE_WITH_VALUE',
};
</script>
<script type="text/javascript">
/* <![CDATA[ */
var google_conversion_id = 1072032839;
var google_custom_params = window.google_tag_params;
var google_remarketing_only = true;
/* ]]> */
</script>
<script type="text/javascript" src="//www.googleadservices.com/pagead/conversion.js">
</script>
<noscript>
<div style="display:inline;">
<img height="1" width="1" style="border-style:none;" alt="" src="//googleads.g.doubleclick.net/pagead/viewthroughconversion/1072032839/?value=0&guid=ON&script=0"/>
</div>
</noscript>
Any ideas on how to get this working?
Contractor's Solutions
www. contractors-solutions.net
www. contractors-solutions.net
Re: AdWords Conversion Tracking Codes
Ok. I will create a control and share with you when I will get some time.
Re: AdWords Conversion Tracking Codes
Great. There are others trying to do this as well.
Contractor's Solutions
www. contractors-solutions.net
www. contractors-solutions.net
Re: AdWords Conversion Tracking Codes
I have just one more thing about Adwords Conversion. What happens when someone checks out using PayPal? They are taken to the PayPpal website to complete their payment.
Contractor's Solutions
www. contractors-solutions.net
www. contractors-solutions.net
Re: AdWords Conversion Tracking Codes
Are your adwords conversions not tracking using PayPal? If you have full source code, you can make this working following this article http://www.lovesdata.com/blog/2010/trac ... fLbS5dGSqI
Some one else using adwords conversion codes, may help you with some other workaround without needing full source code.
Some one else using adwords conversion codes, may help you with some other workaround without needing full source code.
Re: AdWords Conversion Tracking Codes
I am not sure if it is working. I am trying to figure out why the info is inaccurate. Now that I got the AdWords code up, It shows 4 converted clicks yesterday, but Google analytics shows none. On the 10th, Analytics shows 4 transactions and Adwords shows 3 "converted clicks" and 14 "conversions". I didn't even have that many sales that day. And there is no "conversion value" in dollars showing on Adwords.
When I go to the Receipt page and view source I see the following code on the page:
The conversion vale is there, but I have yet to see them in Adwords reports.
When I go to the Receipt page and view source I see the following code on the page:
Code: Select all
<!-- Google Code for test Conversion Page -->
<script type="text/javascript">
/* <![CDATA[ */
var google_conversion_id = 1072032839; // "Your google conversion id goes here (without quotes)"; e.g. 937091250
var google_conversion_language = "en"; // your seleced language
var google_conversion_format = "3"; // conversion format
var google_conversion_color = "ffffff"; // conversion color
var google_conversion_label = "3AlnCPW9SBDH2Jf_Aw"; //"Your google conversion label value goes here"; e.g. dZUcCMPHy18QssHrvgM
var google_conversion_value = USD 575.0000; // e.g. USD 50
var google_conversion_currency = USD; // e.g USD
var google_remarketing_only = false;
/* ]]> */
</script>
<script type="text/javascript" src="//www.googleadservices.com/pagead/conversion.js">
</script>
<noscript>
<div style="display:inline;">
<img height="1" width="1" style="border-style:none;" alt="" src="//www.googleadservices.com/pagead/conversion/1072032839/?value=575.0000¤cy_code=USD&label=3AlnCPW9SBDH2Jf_Aw&guid=ON&script=0"/>
</div>
</noscript>
Contractor's Solutions
www. contractors-solutions.net
www. contractors-solutions.net