Go Back   3dCart Shopping Cart Software Forums > Marketing > CPC/CPA Marketing (Google Ads, Overture, FindWhat, Etc.)

Reply
 
Thread Tools Display Modes
  #1 ()  
Old 05-11-2007, 04:08 AM
yourcablestore.com yourcablestore.com is offline
3dCart Newbie
 
Join Date: Feb 2007
Location: Paradise, CA
Posts: 19
Default Order total variable for Adwords / Yahoo Search Conversions

I am trying to setup Google Adwords and Yahoo Search Marketing to track the order total for conversions. Does anyone know the exact code needed to pass the order total?

Google shows I need a line like this in the conversion code

if ([TOTAL]) {
var google_conversion_value = [TOTAL];
}

And Yahoo shows I need a line like this in the conversion code

window.ysm_customData.conversion = "transId=,currency=,amount=[TOTAL]";

Will inserting the [TOTAL] variable into the javascript work or is there some other way to pass the total value?
Reply With Quote
  #2 ()  
Old 05-13-2007, 06:57 PM
yourcablestore.com yourcablestore.com is offline
3dCart Newbie
 
Join Date: Feb 2007
Location: Paradise, CA
Posts: 19
Default

Well after a couple of days of using that code I am pretty sure it is not working. I will post here if I do figure out what will work.
Reply With Quote
  #3 ()  
Old 12-14-2007, 12:31 AM
bristweb bristweb is offline
3dCart Power User
 
Join Date: Dec 2007
Posts: 129
Exclamation google conversion tracking

from looking at the checkout-step3 template it seems logical to use the following code:

Code:
<!--start block 2--> <!-- Google Code for purchase Conversion Page --> <script language="JavaScript" type="text/javascript"> <!-- var google_conversion_id = xxxxxxxxxx; var google_conversion_language = "en_US"; var google_conversion_format = "1"; var google_conversion_color = "FFFFFF"; if ([BALANCE]) { var google_conversion_value = [BALANCE]; } var google_conversion_label = "purchase"; //--> </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/xxxxxxxxx/imp.gif?value=1.0&label=purchase&script=0"> </noscript> <!--end block 2-->
can someone who has this working correctly or someone from 3dcart admin please confirm how to do this??
Reply With Quote
  #4 ()  
Old 12-14-2007, 07:00 PM
bristweb bristweb is offline
3dCart Power User
 
Join Date: Dec 2007
Posts: 129
Default

https://www.onlinesupportweb.com/ind...articl eid=59

Can I Add Tracking and Conversion Scripts?
Solution

3DCart allows you to add Custom scripts to your website; this could be Javascript functions to be used in the HTML, Tracking Scripts from third part services like Google Analytics or StatCounter, and Conversion Scripts from affiliate programs to track the sales.

All these scripts can be added directly to the HTML files via FTP or from the Store Manager.

Tracking Codes

Any code entered to the Global Header, Footer, Left Banner or Right Banner sections will be displayed on every page of your site. Some of these could be disabled in the website depending on your specific layout.

1. Login to your Store Manager
2. Select SETTINGS > DESIGN > HEADER AND FOOTER
3. Add the script to the Footer field with the WYSIWYG mode OFF (you cannot paste code when this is enabled). This can also be done using the Global Header, Left Banner or Right Banner.
4. Click SAVE CHANGES

Conversion Codes

These codes are used to report your conversion goals or sales to third party services like Affiliate Programs.

1. Login to your Store Manager
2. Select SETTINGS > DESIGN > TITLES AND CONTENT
3. Click on EDIT next to "Checkout #4"
4. Add the script to the Footer section.
5. If the code requires to pass the Invoice Number or the Order amount you can use the variables [invoicenum] for the Invoice number, [total] for the Order Total, or [osubtotal] for the Subtotal of the order (before shipping and taxes).
6. Click on SAVE CHANGES

When a script makes reference to a external site you want them to be secure; always check that they are https instead of http. These scripts also include links to the third party websites so it's better to place the scripts at the Footer instead of the Header.

You can also use .js files when adding custom javascript that you want to keep it behind the page, it's more organized and it makes the code reusable, you can just save the file on your templates folder and then call it from the html.
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT. The time now is 07:25 AM.


Powered by vBulletin® Version 3.6.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.0.0 RC8