Page 1 of 5 123 ... LastLast
Results 1 to 10 of 671

Hybrid View

  1. #1
    kelvyn Guest

    Default Re: Google Analytics Integration

    Quote Originally Posted by a_berezin
    Google Analytics Integration2. Go to Admin->Tools->Install SQL Patches and install googlefroogle.sql;
    Hmmm, did you MEAN googlefroogle.sql, or googleanalytics.sql ?
    3. Go to admin>tools>Google Analytics and setting up your Google Analytics configuration;
    This is actually in admin>configuration>Google Analytics
    The comments and wishes are welcomed.
    Looking good, but the problem I have is that the top of each page now has
    Code:
    _analytics_url = "https://ssl.google-analytics.com/urchin.js"; } echo ' '; ?>

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

    Default Re: Google Analytics Integration

    Quote Originally Posted by kelvyn
    Hmmm, did you MEAN googlefroogle.sql, or googleanalytics.sql ?
    This is actually in admin>configuration>Google Analytics
    Certainly, you have understood me
    Quote Originally Posted by kelvyn
    Looking good, but the problem I have is that the top of each page now has
    Code:
    _analytics_url = "https://ssl.google-analytics.com/urchin.js"; } echo ' '; ?>
    ???? May be you do somehing wrong? jscript_google_analytics.php very small and easy:

    PHP Code:
    <?php
    /**
     * jscript_google_analytics.php
     *
     * @package zen-cart statistic
     * @copyright Copyright 2005-2006 Andrew Berezin
     * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
     * @version $Id: jscript_google_analytics.php,v 1.0.0 18.08.2006 19:19 Andrew Berezin [email protected] $
     */
    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 src="' $google_analytics_url '" type="text/javascript">
    </script>
    <script type="text/javascript">
    _uacct = "' 
    GOOGLE_ANALYTICS_UACCT '";
    urchinTracker();
    </script>'
    ;
    ?>
    Quote Originally Posted by Woodymon
    Observe many errors when attempting to dowload this mod from
    http://zen-cart.spb.ru/freedownload....eAnalytics.zip
    Debugging. Now it's ok.

  3. #3
    kelvyn Guest

    Default Re: Google Analytics Integration

    Quote Originally Posted by a_berezin
    ???? May be you do somehing wrong? jscript_google_analytics.php very small and easy:
    OK, something really weird happened! It seems that when I had uploaded these files, they had APPENDED to the other files!

    And I had repeated the upload at the same time. However, this time, I used a newer version of filezilla, and it did not append. Never happened to me before!

    Sorry for accusing your mod of being at fault - in fact, I have great respect for your mods, as they use excellent over-ride functionality.

    Maybe you can turn your skills to a "mass edit" system? :)
    I would certainly pay a contribution!

  4. #4
    Join Date
    Jul 2006
    Posts
    129
    Plugin Contributions
    1

    Default Re: Google Analytics Integration

    Does this mod include the google code at the top of the page? From what I can see it does. So if google analytics goes down will your site load? Is this not why google suggests to add the code just before the </body> tag?
    ---------------------------------
    Barracuda Productions pure instincts

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

    Default Re: Google Analytics Integration

    Yes. You may manually move this code just before the </body> tag.

  6. #6
    Join Date
    Jul 2004
    Posts
    246
    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

  7. #7
    Join Date
    Aug 2004
    Location
    Saint Petersburg, Russia
    Posts
    1,786
    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?

  8. #8
    kelvyn Guest

    Default Re: Google Analytics Integration

    Does anyone know if this mod works with the 1.3.5d release announced this morning?

  9. #9
    Join Date
    Feb 2004
    Location
    Georgia, USA
    Posts
    1,948
    Plugin Contributions
    0

    Default Re: Google Analytics Integration

    Quote Originally Posted by kelvyn
    Does anyone know if this mod works with the 1.3.5d release announced this morning?
    Kelvyn, perhaps you should test some of the mods with 1.3.5 and report back if it works or not instead of post all over the forum about compatibility issues. 1.3.5 has just been released and people installing and testing it, give it some time for people to start reporting back.

  10. #10
    Join Date
    Oct 2004
    Posts
    1,045
    Plugin Contributions
    0

    Default Re: Google Analytics Integration

    I just came across this thread, but can someone tell me what the benefit is? I put the Google code in tpl_main_page.php, at the bottom right before the </body> tag and it has been working beautifully. I'm guessing there is a good reason to use the mod, I'd just like to know why before I start playing with it

    Thanks!
    Danielle

 

 
Page 1 of 5 123 ... LastLast

Similar Threads

  1. Google Analytics: Site Search Integration
    By saitomedia in forum General Questions
    Replies: 1
    Last Post: 29 Jul 2010, 08:08 AM
  2. google analytics integration
    By amnon_d in forum General Questions
    Replies: 3
    Last Post: 14 Jul 2009, 12:04 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