Results 1 to 10 of 2161

Hybrid View

  1. #1
    Join Date
    Dec 2009
    Posts
    1
    Plugin Contributions
    0

    Default Re: Simple Google Analytics - Support

    I have done everything required to make this mod work, however, I can't get the code to show up in my source. Below is the last section of my tpl_main_page.php file. I am using a template called "classic" and it does not have a common folder in it. I assume it uses the "default_template" for everything it doesn't have, correct? I went ahead and put the google_analytics folder in both the classic folder and the default_template folder just to be safe. The site is www.kikoykiosk.com

    Thanks for your help.





    <!--eof- parse time display -->
    <!--bof- banner #6 display -->
    <?php
    if (SHOW_BANNERS_GROUP_SET6 != '' && $banner = zen_banner_exists('dynamic', SHOW_BANNERS_GROUP_SET6)) {
    if ($banner->RecordCount() > 0) {
    ?>
    <div id="bannerSix" class="banners"><?php echo zen_display_banner('static', $banner); ?></div>
    <?php
    }
    }
    ?>
    <!--eof- banner #6 display -->
    <?php
    require($template->get_template_dir('.php',DIR_WS_TEMPLATE, $current_page_base,'google_analytics') . '/google_analytics.php');
    ?>
    </body>

  2. #2
    Join Date
    Jan 2005
    Location
    Aurora, CO USA
    Posts
    75
    Plugin Contributions
    1

    Default Re: Simple Google Analytics - Support

    Quote Originally Posted by zackman2002 View Post
    I have done everything required to make this mod work, however, I can't get the code to show up in my source. Below is the last section of my tpl_main_page.php file. I am using a template called "classic" and it does not have a common folder in it. I assume it uses the "default_template" for everything it doesn't have, correct? I went ahead and put the google_analytics folder in both the classic folder and the default_template folder just to be safe. The site is www.kikoykiosk.com

    Thanks for your help.
    I don't see the required bit of 'onload=' code in your opening <body> tag.

    From the installation.txt
    PHP Code:
    2. Make sure your body tag in /includes/templates/[your_template]/common/tpl_main_page.php
    includes this code (if not see trouble shooting below it is not neccassary but an addition
    to your template needs to be made):

    **** HELPFUL HINT: ****
    If you are runnning any of the 1.3.x versions of Zen Cart, this line is already
    included with those installs and you can safely skip this step. You may need to check earlier
    versions for it though.
    ***********************

    <body id="<?php echo $body_id 'Body'?>"<?php if($zv_onload !='') echo ' onload="'.$zv_onload.'"'?>>

  3. #3
    Join Date
    Dec 2005
    Posts
    1,509
    Plugin Contributions
    6

    Default Re: Simple Google Analytics - Support

    Quote Originally Posted by BassFace View Post
    I don't see the required bit of 'onload=' code in your opening <body> tag.

    From the installation.txt
    PHP Code:
    2. Make sure your body tag in /includes/templates/[your_template]/common/tpl_main_page.php
    includes this code (if not see trouble shooting below it is not neccassary but an addition
    to your template needs to be made):

    **** HELPFUL HINT: ****
    If you are runnning any of the 1.3.x versions of Zen Cart, this line is already
    included with those installs and you can safely skip this step. You may need to check earlier
    versions for it though.
    ***********************

    <body id="<?php echo $body_id 'Body'?>"<?php if($zv_onload !='') echo ' onload="'.$zv_onload.'"'?>>
    It's ok if that is not present (the onload portion). That won't show on most sitess for the most part (even when GA is present). That's because it is php code which activates at run time. Typically the body tag remains as is and the onload is not critical.
    Eric
    20 Ways to Increase Sales Using Zen Cart
    Zen Cart contribs: Simple Google Analytics, Export Shipping Information

  4. #4
    Join Date
    Dec 2005
    Posts
    1,509
    Plugin Contributions
    6

    Default Re: Simple Google Analytics - Support

    Quote Originally Posted by zackman2002 View Post
    I have done everything required to make this mod work, however, I can't get the code to show up in my source. Below is the last section of my tpl_main_page.php file. I am using a template called "classic" and it does not have a common folder in it. I assume it uses the "default_template" for everything it doesn't have, correct? I went ahead and put the google_analytics folder in both the classic folder and the default_template folder just to be safe. The site is www.kikoykiosk.com

    Thanks for your help.





    <!--eof- parse time display -->
    <!--bof- banner #6 display -->
    <?php
    if (SHOW_BANNERS_GROUP_SET6 != '' && $banner = zen_banner_exists('dynamic', SHOW_BANNERS_GROUP_SET6)) {
    if ($banner->RecordCount() > 0) {
    ?>
    <div id="bannerSix" class="banners"><?php echo zen_display_banner('static', $banner); ?></div>
    <?php
    }
    }
    ?>
    <!--eof- banner #6 display -->
    <?php
    require($template->get_template_dir('.php',DIR_WS_TEMPLATE, $current_page_base,'google_analytics') . '/google_analytics.php');
    ?>
    </body>
    You likely did not place the code in the correct location to get Google Analytics on the page.

    The classic template pulls from the default pages (the classic is directory actually only runs the look of the site.)

    What you need to do is make sure you place the "google_analytics.php" reference in the tpl_main_page of the classic template and make sure you copy the directory google_analytics to the correct location for reference as well. It might be best to create your own "common" directory under the classic template to add your own file to as well.

    If you send me a private message with your login details I can correct it for you quickly.
    Last edited by econcepts; 4 Dec 2009 at 04:32 PM. Reason: clarification
    Eric
    20 Ways to Increase Sales Using Zen Cart
    Zen Cart contribs: Simple Google Analytics, Export Shipping Information

  5. #5
    Join Date
    Aug 2009
    Location
    UK
    Posts
    71
    Plugin Contributions
    0

    Default Re: Simple Google Analytics - Support

    I'm trying to track traffic from other sites especially cpc that comes in to specific product pages.
    Can this be done?
    When I look for the google analytics code on pages it appears on the home page and category pages BUT not on product pages!!! Is that right?

  6. #6
    Join Date
    Dec 2005
    Posts
    1,509
    Plugin Contributions
    6

    Default Re: Simple Google Analytics - Support

    Quote Originally Posted by ptowers49 View Post
    I'm trying to track traffic from other sites especially cpc that comes in to specific product pages.
    Can this be done?
    When I look for the google analytics code on pages it appears on the home page and category pages BUT not on product pages!!! Is that right?
    You have the code installed incorrectly if it is showing on some pages but not others. If you installed it per the instructions it will appear on all pages of the site including the checkout page.

    You can track cpc traffic by then linking your Adwords account to your Google Analytics account and indicating to Google that you want to "Apply Cost Data" to your reports.

    This will get you all the detail you need on cpc.

    But again, you need to have the GA code installed correctly first and it appears that isn't the case.

    There are only a few steps to installing this mod are you sure you are using this one (there is another mod that is not mine out there.)

    If you can't figure it out, post a link and I'll see if I can't pin point what might be going on.
    Eric
    20 Ways to Increase Sales Using Zen Cart
    Zen Cart contribs: Simple Google Analytics, Export Shipping Information

  7. #7
    Join Date
    Aug 2009
    Location
    UK
    Posts
    71
    Plugin Contributions
    0

    Default Re: Simple Google Analytics - Support

    Eric,
    I've found that I have no footer on the product pages!! www.classicalchandeliers.co.uk
    I other sites I am building like www.electrical-and-plumbing-supplies.co.uk that I have not put simple google analystics on yet so I wouldn't think the problem is there... but do have any ideas what the problem might be.
    I have loaded glacial age, Image handler 2 , zenlightbox modules.

    thanks in anticipation/ Paul

  8. #8
    Join Date
    Aug 2009
    Location
    UK
    Posts
    71
    Plugin Contributions
    0

    Default Re: Simple Google Analytics - Support

    more info Eric
    I get this debug error require(includes/templates/template_default/templates/tpl_modules_xsell_products.php) ? when I look at product pages without the footer

  9. #9
    Join Date
    Aug 2009
    Location
    UK
    Posts
    71
    Plugin Contributions
    0

    Default Re: Simple Google Analytics - Support

    I have performed this fix to make the footer re-appear on the product pages


    Footer not displaying on product pages
    looked in includes/templates/glacial_age/templates/tpl_product_info_display.php
    and commented out
    // require($template->get_template_dir('tpl_modules_xsell_products.php', DIR_WS_TEMPLATE, $current_page_base,'templates'). '/' . 'tpl_modules_xsell_products.php');
    On line 271

    I'll check the analytics again
    ######################################################################################################################################################___

 

 

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