Results 1 to 10 of 2161

Hybrid View

  1. #1
    Join Date
    Jan 2008
    Location
    Toronto
    Posts
    72
    Plugin Contributions
    0

    Default Re: Simple Google Analytics - Support

    I just checked common/tpl_main_page.php and see

    <!--simple google analytics-->
    <?php
    if (GOOGLE_ANALYTICS_TRACKING_TYPE == "Asynchronous") {
    // Do nothing
    } else {
    require(DIR_WS_TEMPLATE . 'google_analytics/google_analytics.php');
    }
    ?>
    </body>

    have I combined old & new install methods?

    Please advise
    New Zenner

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

    Default Re: Simple Google Analytics - Support

    Quote Originally Posted by polygone View Post
    I just checked common/tpl_main_page.php and see

    <!--simple google analytics-->
    <?php
    if (GOOGLE_ANALYTICS_TRACKING_TYPE == "Asynchronous") {
    // Do nothing
    } else {
    require(DIR_WS_TEMPLATE . 'google_analytics/google_analytics.php');
    }
    ?>
    </body>

    have I combined old & new install methods?

    Please advise
    If you were running zen cart v1.3.9 and simple google analytics v1.2.4, v1.2.5 everything should be correct in your insulation. Nothing has been change in simple google analytics v1.2.5a, simple google analytics v1.2.5b, simple google analytics v1.2.5c except I created and upgrade folder and created a upgrade.txt file. so this would be easier for the installer.

    NOTE: If you were using a previous version (1.2.x) of Google Analytics (prior to 1.2.3) then you'll need to change the code in the previous location

    At the bottom of /includes/templates/[your_template]/common/tpl_main_page.php

    Find the lines of code that look like this (found below) just before the </body> tag:

    <?php
    if (GOOGLE_ANALYTICS_TRACKING_TYPE == "Asynchronous") {
    require($template->get_template_dir('.php',DIR_WS_TEMPLATE, $current_page_base,'google_analytics') . '/google_analytics.php');
    }
    ?>


    CHANGE / replace the lines of code to look like this:


    <?php
    if (GOOGLE_ANALYTICS_TRACKING_TYPE == "Asynchronous") {
    // Do nothing
    } else {
    require(DIR_WS_TEMPLATE . 'google_analytics/google_analytics.php');
    }
    ?>
    Hope this helps.
    Is your site Upgraded to the current version 1.5.4 Yet?
    zencart-upgrades-website-installation

  3. #3
    Join Date
    Feb 2012
    Posts
    20
    Plugin Contributions
    0

    Default Re: Simple Google Analytics - Support

    So would anyone be able to provide the code to properly setup Bing AdCenter Conversion tracking. Earlier in the thread Eric said you needed to use an "if, then" statement similar to one used for google and just substitute the code provided by AdCenter...anyone know how to go about this?

  4. #4
    Join Date
    Mar 2009
    Posts
    414
    Plugin Contributions
    0

    Default Re: Simple Google Analytics - Support

    Polygone,

    It's probably obvious to you, but since a comment above says you don't paste the code in your html, it may be worth pointing out that you must go to the Admin for Simple Google Analytics and enter your Google Analytics code there.

  5. #5
    Join Date
    Mar 2009
    Posts
    414
    Plugin Contributions
    0

    Default Re: Simple Google Analytics - Support

    Still puzzling over what could be the problem when my functioning Google Analytics just stopped working on one site but not another, so that on my non-working site when I "view source," I cannot see the GA code.

    Is there some way to identify what has changed or what could have changed to make the code disappear in "view source" when it plainly is still in the html header and body files as it was when it was working?

    Do I just go through the header and body files line by line in comparison with prior versions using WinMerge? Should I assume something in these files is suddenly broken, or would there be some add-on that interferes? For example, I added the Link Exchange module to my two sites, one of which still shows GA in "view source." Is WinMerge the only possible avenue of investigation? Am I on the right process track?

    Notageek

 

 

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

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