Results 1 to 10 of 2161

Threaded View

  1. #21
    Join Date
    Jul 2007
    Posts
    2,169
    Plugin Contributions
    16

    Default Re: Simple Google Analytics - Support

    Quote Originally Posted by Yaro View Post
    Jeking, thank you!

    I've did everything according to the installation manual, including file changes, I added this code into tpl_main_page.php:

    <?php
    if (GOOGLE_ANALYTICS_TRACKING_TYPE == "Asynchronous") {
    // Do nothing
    } else {
    require(DIR_WS_TEMPLATE . 'google_analytics/google_analytics.php');
    }
    ?>

    </body>

    And I installed the SQL patch (uploaded a file through the ZC admin)

    Why the GA code is not showing now?
    Make sure you Change the "admin" and "your_template" folder name to match the name of your custom directory and ftp upload to your sever.
    Where ever you see the words "your_template" (in either these instructions, or the file folders included with the install)
    you should REPLACE that with the directory name that your template is running from. So for example, if you are running a
    custom template and the directory that you decided to keep those template files in is called "mycustomtemplate" then, where ever
    you see the words "your_template", you would change it to "mycustomtemplate".

    If you are using the default template provided with zen cart, then you would replace each instance of "your_template" with the
    following: "template_default"

    Make sure you insert this code in the body tag in /includes/templates/[your_template]/common/tpl_main_page.php
    At the bottom just before the closing </body> tag:

    PHP Code:
    <?php
    if (GOOGLE_ANALYTICS_TRACKING_TYPE == "Asynchronous") {
    // Do nothing
    } else {
    require(
    DIR_WS_TEMPLATE 'google_analytics/google_analytics.php');
    }
    ?>
    The code is not installed on your site yet. Follow the direction for it to show when you view source at the bottom of the page.
    Last edited by countrycharm; 18 May 2012 at 03:52 PM.
    Is your site Upgraded to the current version 1.5.4 Yet?
    zencart-upgrades-website-installation

 

 

Similar Threads

  1. v150 Simple Google Analytics .sql error !
    By Miff in forum All Other Contributions/Addons
    Replies: 0
    Last Post: 10 Feb 2012, 11:33 PM
  2. Simple Google Analytics-not working
    By RobertG in forum Templates, Stylesheets, Page Layout
    Replies: 6
    Last Post: 11 Nov 2010, 06:07 PM
  3. Simple (From Google) Analytics Install
    By DagLindt in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 26 May 2009, 10:46 PM
  4. Simple google analytics- help
    By Pet Herbal Remedies in forum All Other Contributions/Addons
    Replies: 4
    Last Post: 1 Oct 2008, 10:37 PM
  5. Simple Google Analytics not working
    By jvanree in forum All Other Contributions/Addons
    Replies: 0
    Last Post: 29 May 2008, 03:46 AM

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
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR