Results 1 to 10 of 23

Threaded View

  1. #5
    Join Date
    Dec 2007
    Location
    Belfast, N.Ireland
    Posts
    96
    Plugin Contributions
    0

    Default Re: How To: Add Google Analytics Tracking Code Directly To Zen Cart Code

    Quote Originally Posted by JaspalX View Post
    Hi ardhill, may be a silly question but when you created the jscript_google-analytics.js file, did you remove the <script></script> tags? I just tried it and it seems to work fine. FWIW, I used jscript_ga.js
    Yes, you are correct.

    These .js files are loaded and run as Javascript by Zen Cart, so you don't need to add the <script></script> tags.

    In fact the ZenCart wiki states:

    Quote Originally Posted by ZenCart wiki
    NOTE: jscript_*.js files must not contain any <script...> .... </script> tags. They should contain ONLY the contents that are to go "between" those tags.
    http://www.zen-cart.com/wiki/index.p...verride_How-To
    Last edited by ardhill; 4 Oct 2012 at 09:04 AM. Reason: Added wiki url

 

 

Similar Threads

  1. v139h Google Analytics Conversion Tracking code install
    By split63 in forum General Questions
    Replies: 7
    Last Post: 17 Dec 2015, 04:09 AM
  2. Where to put google analytics tracking code???
    By cmike in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 23 Apr 2014, 08:05 AM
  3. Replies: 6
    Last Post: 3 Oct 2013, 10:36 PM
  4. Ecommerce Tracking code for Google Analytics
    By Endre in forum General Questions
    Replies: 7
    Last Post: 14 Nov 2012, 03:20 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg