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

Need help with code

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 04-08-2013, 05:05 PM
 
tom437 tom437 is offline
 

eXpert
  
Join Date: Feb 2010
Posts: 209
 

Default Need help with code

Hello,


I'm trying to add a code on my website from gosquared, its said (copy the following snippet of JavaScript and paste into your site's HTML just before the closing </body> tag.) so where on my website can I add it?

Any help will be appreciated.
Thank you
Tom
__________________
x cart 4.4.2
Reply With Quote
  #2  
Old 04-08-2013, 05:19 PM
  cflsystems's Avatar 
cflsystems cflsystems is offline
 

Veteran
  
Join Date: Apr 2007
Posts: 14,201
 

Default Re: Need help with code

That would be home.tpl in the skin your site uses. YOu may also need to place the code between {literal} tags

{literal}code{/literal}
__________________
Steve Stoyanov
CFLSystems.com
Web Development
Reply With Quote
  #3  
Old 04-09-2013, 06:13 PM
 
tom437 tom437 is offline
 

eXpert
  
Join Date: Feb 2010
Posts: 209
 

Default Re: Need help with code

I still can't get it to work.
__________________
x cart 4.4.2
Reply With Quote
  #4  
Old 05-05-2013, 08:36 AM
 
stonezafu stonezafu is offline
 

Member
  
Join Date: Dec 2012
Posts: 18
 

Default Re: Need help with code

Are you also putting it inside <script> ... </script> tags within the {literal} tags?

Maybe providing just a little more detail would let us help you crack this. Can you quote the code snippet you're trying to use?

Also, I'm assuming you realise that X-Cart's own Advanced Statistics module can provide quite a lot of detail about who's visiting your site. And if you have CPanel hosting, you may have the wonderful Awstats package installed.

John
__________________
Two client sites: 4.4.4 and 4.5.5
Coding since 1981. Using X-Cart since 2012
Reply With Quote
  #5  
Old 05-05-2013, 11:47 AM
  cflsystems's Avatar 
cflsystems cflsystems is offline
 

Veteran
  
Join Date: Apr 2007
Posts: 14,201
 

Default Re: Need help with code

Quote:
Originally Posted by stonezafu
...I'm assuming you realise that X-Cart's own Advanced Statistics module can provide quite a lot of detail about ....

This module should never ever be used on a live site - it is a hog, it eats up resources, it grows database very fast and while it does have info it gives you very little compare to Google Analytics
__________________
Steve Stoyanov
CFLSystems.com
Web Development
Reply With Quote
  #6  
Old 05-05-2013, 12:20 PM
 
stonezafu stonezafu is offline
 

Member
  
Join Date: Dec 2012
Posts: 18
 

Default Re: Need help with code

Steve

Thanks for your guidance on this.

I confess I no longer use that module myself for the very reasons you state. It doubled the size of my DB in 18 months. Nowadays my hosting at Krystal.co.uk gives me much more user-friendly output.

However, the Advanced Statistics module _is_ there already in X-Cart and has the advantage for people not used to programming that it doesn't have to be coded. In fairness to X-Cart, it's pretty easy to save Advanced Statistics data output to CSV & clean it down from a menu item (Tools >> Maintenance >> Clear Statistics) every 2 or 3 months, so it doesn't necessarily have to overload the DB.

John
__________________
Two client sites: 4.4.4 and 4.5.5
Coding since 1981. Using X-Cart since 2012
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



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 01:56 PM.

   

 
X-Cart forums © 2001-2020