Page 2 of 68 FirstFirst 12341252 ... LastLast
Results 11 to 20 of 671
  1. #11
    Join Date
    Aug 2004
    Location
    Saint Petersburg, Russia
    Posts
    1,614
    Plugin Contributions
    13

    Default Re: Google Analytics Integration

    Yes. You may manually move this code just before the </body> tag.
    Good luck,
    Andrew
    Russian Zen-Cart forum

  2. #12
    Join Date
    Jul 2004
    Posts
    230
    Plugin Contributions
    0

    Default Re: Google Analytics Integration

    I was getting javascript errors after installing this mod but fixed it by changing the code to this

    if ($request_type == 'NONSSL') {
    $google_analytics_url = "http://www.google-analytics.com/urchin.js";
    } else {
    $google_analytics_url = "https://ssl.google-analytics.com/urchin.js";
    }
    echo '<script type="text/javascript" src="' . $google_analytics_url . '"></script>
    <script type="text/javascript">
    _uacct = "' . GOOGLE_ANALYTICS_UACCT . '";
    urchinTracker();
    </script>';
    ?>


    in file YOUR_ZEN_FOLDER/includes/templates/YOUR_TEMPLATE/jscript/jscript_google_analytics.php

    Small change I know but the script type must go before the src

    Not setup an account at Google Analytics yet but fingers crossed this will work fine
    UK based Zen Cart Web Designer here www.handcoded.co.uk

  3. #13
    Join Date
    Aug 2004
    Location
    Saint Petersburg, Russia
    Posts
    1,614
    Plugin Contributions
    13

    Default Re: Google Analytics Integration

    Quote Originally Posted by longstockings
    I was getting javascript errors after installing this mod
    ...
    Small change I know but the script type must go before the src
    I use original Google Analytics code. And no jscript error. What browser you use?
    Good luck,
    Andrew
    Russian Zen-Cart forum

  4. #14
    Join Date
    Jul 2004
    Posts
    230
    Plugin Contributions
    0

    Re: Google Analytics Integration

    My bad

    Found the problem was with image handler 2 and that image hover thing among others.

    Can an admin delete this and the previous 2 posts as I would hate to give the impression that this contribution is in any way a bit crumby.

    FYI I use Firefox but had to test the site in IE and had javascript errors all over the place but these have now been resolved


    Sorry a_berezin
    UK based Zen Cart Web Designer here www.handcoded.co.uk

  5. #15
    Join Date
    Aug 2004
    Location
    Saint Petersburg, Russia
    Posts
    1,614
    Plugin Contributions
    13

    Default Re: Google Analytics Integration

    No problem.
    If you use Firefox. I recomend you to use it with nice FireBug extention.
    Good luck,
    Andrew
    Russian Zen-Cart forum

  6. #16
    Join Date
    Aug 2004
    Location
    Saint Petersburg, Russia
    Posts
    1,614
    Plugin Contributions
    13

    Default Re: Google Analytics Integration

    1. v 1.0.1 24.08.2006 16:51
    1) Support zen-cart 1.2.x
    2) Clear code
    Good luck,
    Andrew
    Russian Zen-Cart forum

  7. #17
    Join Date
    Apr 2004
    Location
    Berkshire, UK
    Posts
    1,482
    Plugin Contributions
    1

    Default Re: Google Analytics Integration

    Quote Originally Posted by a_berezin
    1. v 1.0.1 24.08.2006 16:51
    1) Support zen-cart 1.2.x
    2) Clear code
    This is a seperate version of 1.2.x only?

  8. #18
    Join Date
    Aug 2004
    Location
    Saint Petersburg, Russia
    Posts
    1,614
    Plugin Contributions
    13

    Default Re: Google Analytics Integration

    1.3 and 1.2
    Good luck,
    Andrew
    Russian Zen-Cart forum

  9. #19
    Join Date
    Apr 2004
    Location
    Berkshire, UK
    Posts
    1,482
    Plugin Contributions
    1

    Default Re: Google Analytics Integration

    Quote Originally Posted by Woodymon
    BTW I'm still not convinced that allowing a third party to have such detailed access to private statistical information is the best idea. But if you trust Google to host your email and chat services and track your personal search activities, then entrusting the same third party to host your shop stats analysis program is not much of a leap, is it?
    Doesn't bother me - I get more out of using it, than the concern of black helicopters and transmitters hidden in dollar bills keeps me awake at night.

    For example, part of the "payback" you get for using it is that, of course, you may well get a better PR - google can see exactly HOW your traffic is coming in, even for those without the googlebar. Hence, it can rank you better.

  10. #20
    Join Date
    Mar 2005
    Location
    United Kingdom
    Posts
    531
    Plugin Contributions
    0

    Default Re: Google Analytics Integration

    Quote Originally Posted by a_berezin
    1.3 and 1.2
    Hi Andrew,

    I (think ) I've followed the install instructions but I can't get this to work with 1.2.7d. The Admin menus appear etc. but the code is not entered on each page in my store by the java script.

    Quote the JScript Readme
    JavaScript Override How-To

    Any file in this directory with the following filename format will be loaded globally on every page of your shop:
    jscript_{unique_name}.js
    Could it be this? As a test I changed jscript_google_analytics.php to jscript_google_analytics.js and the code is then loaded but obviously with errors.

    I tried with the default install on my V1.3.0.2 test site and that was fine so I assume there were changes made here between 1.2.x and 1.3.x?

    Any help would be appreciated.

    Regards

    Brent

 

 
Page 2 of 68 FirstFirst 12341252 ... LastLast

Similar Threads

  1. Google Analytics
    By pstarling in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 20 Aug 2006, 09:33 AM
  2. Google Analytics update
    By besheer in forum General Questions
    Replies: 17
    Last Post: 20 Aug 2006, 09:32 AM
  3. Google Analytics questions
    By wickedklown in forum General Questions
    Replies: 6
    Last Post: 3 Aug 2006, 10:28 PM

Bookmarks

Posting Permissions

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