| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
Need help installing Overture Conversion Counter code | ||||
![]() |
|
|
Thread Tools | Search this Thread |
#1
|
|||||||||
|
|||||||||
![]() I have signed up for the Overture Conversion Counter and it requires adding a little JavaScript code in between the <head></head> tags, simple enough? The only place I know to add it is in the customer/home.tpl with the rest of my JS but it needs to be on the order confirmation page only.
Here is the JS code: Code:
And the instructions they sent: Code:
Any help with this is much appreciated! The site this is going on is x-cart 3.4.11
__________________
Web site design - Custom Programming - Upgrades - Marketing www.netvisionwebdesign.com Follow on twitter: http://twitter.com/netvisionweb Become a fan on Facebook: http://www.facebook.com/pages/NetVision-Web-Design/89463493419 |
|||||||||
#2
|
|||||||||
|
|||||||||
![]() make sure you wrap the java code in literal tags
{literal} java code {/literal}
__________________
Looking for a reliable X-cart host ? You wont go wrong with either of these. ![]() ![]() |
|||||||||
#3
|
|||||||||
|
|||||||||
![]() Where, or how could I put the code so it is placed in between the <head></head> tags on the confirmation page only?
As the instruction say, it needs to be on the confirmation page only or else it will reports inaccurate information. Could this maybe be done with a include in the .php file? and is there and easy way to do this? Thanks!
__________________
Web site design - Custom Programming - Upgrades - Marketing www.netvisionwebdesign.com Follow on twitter: http://twitter.com/netvisionweb Become a fan on Facebook: http://www.facebook.com/pages/NetVision-Web-Design/89463493419 |
|||||||||
#4
|
|||||||
|
|||||||
![]() I would think you would put it in the main/order_message.tpl file. Something like this:
Code:
|
|||||||
#5
|
|||||||||
|
|||||||||
![]() wouldn't this just be adding Head tags to this template essentially putting in 2 sets of Head tags on the final outputed page that the customer sees?
__________________
Web site design - Custom Programming - Upgrades - Marketing www.netvisionwebdesign.com Follow on twitter: http://twitter.com/netvisionweb Become a fan on Facebook: http://www.facebook.com/pages/NetVision-Web-Design/89463493419 |
|||||||||
#6
|
|||||||
|
|||||||
![]() I didn't think that having two <Head> sections would work. I tried it earlier this week but it didn't work. Google's conversion code worked on that page though.
I don't know if this will work, but this is what I did. In skin/customer/home.tpl in inserted the following code right above the closing </head> tag. Code:
Thoughts? Does anyone have another way?
__________________
|| E L E V E N || |
|||||||
#7
|
|||||||||
|
|||||||||
![]() eleven...
This is about what I was thinking, I have put the code in and will be testing it a little later today. I will post the results when i'm done... Thanks for the assist!
__________________
Web site design - Custom Programming - Upgrades - Marketing www.netvisionwebdesign.com Follow on twitter: http://twitter.com/netvisionweb Become a fan on Facebook: http://www.facebook.com/pages/NetVision-Web-Design/89463493419 |
|||||||||
#8
|
|||||||
|
|||||||
![]() Any update on this one? I've got a customer who's just signed up for Overture...
|
|||||||
#9
|
|||||||||
|
|||||||||
![]() I don't think it matters where you put the Overture code. From looking at the code, it should work anywhere in your order_message.tpl. I have gotten both Overture and advanced Google conversion code. It has been working fine for us within the body of the page. Here's what my order_message.tpl looks like, but keep in mind this is from X-Cart 3.3.x branch and I have taken the liberty of removing our tracking IDs from this code and replaced with "your_tracking_id_here":
Code:
For overture, I just pasted the code inside some literals. For Google, I'm just doing a loop throught the orders and totaling them with Smarty, then substituting the $grand_total into the Google Javascript code. This way you can track the actual value of each conversion in Google. I just upgraded to this advanced tracking today, so the code isn't tested yet, but it should work fine.
__________________
www.brettbrewer.com Getting back into x-cart dev after a long hiatus. Modded lots of x-carts from version 3.1.x to 4.1.x. Developer of ImageScaler mod, Pre-login per user coupon mod, Wordpress feed mod, DigitalSubscriptions mod, Phonetic bulk download keys addon for DownloadExpander mod, Serial Number Generator for ESD products, Custom CMS/LMS integrations, external products mod, and more. |
|||||||||
#10
|
|||||||||
|
|||||||||
![]() If you place this code in the home.tpl your conversions would be way off, since everything calls that tpl file, you need to place it in the order_message.tpl file, but I have not gotten it to give me any results there, even though I have no javascript errors and it DOES show up in the source on that page, anyone have any ideas?
-Eric Running X-cart 3.5.5 www.chirunning.com
__________________
-Eric X-cart 4.3.2 up and running. Apache, PHP 5.2, APC, Redhat, Checkout One, On Sale, Smart Search, Remember Cart. Lots of other customization's, but perhaps typical of x-cart installations. X-cart 5 sort of in limbo, trying to make things work without much luck. |
|||||||||
|
|||
X-Cart forums © 2001-2020
|