Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

Google Adwords Conversion Tracking: a how-to on adding code

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions
 
Thread Tools Search this Thread
  #31  
Old 11-04-2010, 03:15 PM
 
Seacat Seacat is offline
 

Advanced Member
  
Join Date: Feb 2007
Posts: 29
 

Default Re: Google Adwords Conversion Tracking: a how-to on adding code

For step 7 using version 4.1.6 when doing the bold section you'll actually get a dollar amount there when you go and view the source of the order message page. Of course, the 12345 parts in the code are placeholders for the actual Google stuff pertaining to my account.


{literal}
<script type="text/javascript" src="https://www.googleadservices.com/pagead/conversion.js">
</script>
<noscript>
<div style="display:inline;">
<img height="1" width="1" style="border-style:none;" alt="" src="https://www.googleadservices.com/pagead/conversion/12345/?value={/literal}{section name=oi loop=$orders}{$orders[oi].order.subtotal}{/section}{literal}&amp;label=12345&amp;guid=ON&amp;script=0"/>
</div>
</noscript>
<div style="display:inline;">
<img height="1" width="1" style="border-style:none;" alt="" src="https://www.googleadservices.com/pagead/conversion/12345/?value={/literal}{section name=oi loop=$orders}{$orders[oi].order.subtotal}{/section}{literal}&amp;label=12345&amp;guid=ON&amp;script=0"/>
</div>
</noscript>
{/literal}
__________________
Seacat
X-Cart Gold v4.1.6 [linux]
PHP 5.2.2
My SQL 5.0.24
DSEFU Mod
Cartlab CSS Skin
Several other mods
Self-Defense Weapons
Reply With Quote
  #32  
Old 12-19-2010, 11:36 PM
  Mr. G's Avatar 
Mr. G Mr. G is offline
 

eXpert
  
Join Date: Nov 2010
Posts: 386
 

Default Re: Google Adwords Conversion Tracking: a how-to on adding code

Hi all! Wow, quite a thread here. Does any of it apply to 4.4.1? In other words, is the extremely simple form at ../admin/configuration.php?option=Google_Analytics (settings -> modules -> Google Analytics -> Configure) too good to be true?
__________________
4.7.6 Gold Plus
XCartMods.co.uk Ultra Template
X-Cart Abandoned Cart
BCSE PayPal DPM
CDSEO Pro 2.1.8
BCSE Drop Shipper Pro
Google Rich Snippets
Time and money-saving tips I've learned as a webstore owner at http://ShoppingCart-Program.com
Reply With Quote
  #33  
Old 01-08-2011, 08:20 PM
 
Mickeyt Mickeyt is offline
 

Advanced Member
  
Join Date: Nov 2010
Posts: 68
 

Default Re: Google Adwords Conversion Tracking: a how-to on adding code

Quote:
Originally Posted by Mr. G
Hi all! Wow, quite a thread here. Does any of it apply to 4.4.1? In other words, is the extremely simple form at ../admin/configuration.php?option=Google_Analytics (settings -> modules -> Google Analytics -> Configure) too good to be true?

It works, but just for Anlytics. Not for Adwords
__________________
Tom

X-CART 4.4.1
Reply With Quote
  #34  
Old 06-30-2011, 03:51 PM
 
davin1763 davin1763 is offline
 

Member
  
Join Date: Jan 2011
Posts: 19
 

Default Re: Google Adwords Conversion Tracking: a how-to on adding code

Well,

I just simple copied and pasted the code Google gave me and it seems to have worked. Havent seen any conversion info yet, but it may take a little bit to see the actual conversion.

{/if}

***I pasted code here***
<!-- Google Code for purchase Conversion Page -->
<script type="text/javascript">
/* <![CDATA[ */
var google_conversion_id = 11111example-i.d1111;
var google_conversion_language = "en";
var google_conversion_format = "1";
var google_conversion_color = "ffffff";
var google_conversion_label = "cT0yCIa66gEQzvyf-QM";
var google_conversion_value = 0;
/* ]]> */
</script>
<script type="text/javascript" src="https://www.googleadservices.com/pagead/conversion.js">
</script>
<noscript>
<div style="display:inline;">
<img height="1" width="1" style="border-style:none;" alt="" src="https://www.googleadservices.com/pagead/conversion/111example-i.d11/?label=cT0yCIa66gEQzvyf-QM&amp;guid=ON&amp;script=0"/>
</div>
</noscript>



{capture name=dialog}


And got the screenshot I attached.

My question is...if this did work..is there a way I can make the table mentioned in previous posts to have the google text appear on the bottom of the page by "Thank You For Your Purchase"? Would the same table code work on the newer version?

Thanks!
Attached Thumbnails
Click image for larger version

Name:	google-ad-screenshot.gif
Views:	174
Size:	12.2 KB
ID:	2639  
__________________
4.4.1
Reply With Quote
  #35  
Old 07-01-2011, 12:18 PM
 
davin1763 davin1763 is offline
 

Member
  
Join Date: Jan 2011
Posts: 19
 

Default Re: Google Adwords Conversion Tracking: a how-to on adding code

UPDATE- I did a test order and it is working correctly.

Now just have to figure out how to move the text to the bottom of the page.

Anyone have any ideas?
__________________
4.4.1
Reply With Quote
  #36  
Old 05-30-2012, 11:05 PM
 
buywink buywink is offline
 

Advanced Member
  
Join Date: Apr 2012
Posts: 93
 

Default Re: Google Adwords Conversion Tracking: a how-to on adding code

Hi,
I have two codes Google Code for Sale Conversion Page and Google Code for Add to Cart Conversion Page.I have x-cart Pro 4.4.2.I do not understand where to add.

Please suggest me where to add exactly.

Thanks.
__________________
x-cart Gold 4.4.5
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions



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 -8. The time now is 07:47 AM.

   

 
X-Cart forums © 2001-2020