Page 3 of 20 FirstFirst 1234513 ... LastLast
Results 21 to 30 of 2161

Hybrid View

  1. #1
    Join Date
    Jun 2007
    Posts
    68
    Plugin Contributions
    0

    red flag Re: Simple Google Analytics - Support

    someone give me a hand intregrating analytics in my site ? i followed the read me file but i was unable to find these file:

    2. Make sure your body tag in includes/templates/[your_template] includes this code (if not see trouble shooting below it is not neccassary but an addition to your template needs to be made):
    <body id="<?php echo $body_id . 'Body'; ?>"<?php if($zv_onload !='') echo ' onload="'.$zv_onload.'"'; ?>>
    3. At the bottom of templates/[your_template]/common/tpl_main_page.php
    Add this just before the </body> tag:
    <?php
    require($template->get_template_dir('.php',DIR_WS_TEMPLATE, $current_page_base,'google_analytics') . '/google_analytics.php');
    ?>

    I am using a custom template i dont know if that makes a difference or not i thought i would let you know. i also dont see a your template folder in my includes/templates/

    Any advise would be much appreciated thanks

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

    Default Re: Simple Google Analytics - Support

    Quote Originally Posted by slik666 View Post
    someone give me a hand intregrating analytics in my site ? i followed the read me file but i was unable to find these file:

    2. Make sure your body tag in includes/templates/[your_template] includes this code (if not see trouble shooting below it is not neccassary but an addition to your template needs to be made):
    <body id="<?php echo $body_id . 'Body'; ?>"<?php if($zv_onload !='') echo ' onload="'.$zv_onload.'"'; ?>>
    If you are using the newer versions of Zen Cart, then this line is already present by default. No need to look for it. For the record though, it is in your "tpl_main_page.php" file.


    Quote Originally Posted by slik666 View Post
    3. At the bottom of templates/[your_template]/common/tpl_main_page.php
    Add this just before the </body> tag:
    <?php
    require($template->get_template_dir('.php',DIR_WS_TEMPLATE, $current_page_base,'google_analytics') . '/google_analytics.php');
    ?>

    I am using a custom template i dont know if that makes a difference or not i thought i would let you know. i also dont see a your template folder in my includes/templates/
    "your_template" is NOT the directory name. You are supposed to replace that with the custom directory for your OWN template. Make sense?

    SO, if your custom template is named "my_custom_template", then the path would look like this:

    /includes/templates/my_custom_template/common/tpl_main_page.php
    Eric
    20 Ways to Increase Sales Using Zen Cart
    Zen Cart contribs: Simple Google Analytics, Export Shipping Information

  3. #3
    Join Date
    Aug 2007
    Posts
    1
    Plugin Contributions
    0

    Default Re: Simple Google Analytics - Support

    Hello There

    I am having alot of problems with using this script- I have tried a few now and i can't seem to get them to work

    Anyway i have some error at the bottem of the page that displays all the time

    the website is http://easylife.com

    the error i am receiving is:
    HTML Code:
    [QUOTE]
    [HTML]Warning: main() [function.main]: open_basedir restriction in effect. File(/usr/share/pear/includes/templates/template_default/google_analytics/google_analytics.php) is not within the allowed path(s): (/tmp:/home/EasyLife/easylife.com) in /home/EasyLife/easylife.com/user/htdocs/cart/includes/templates/template_default/common/tpl_main_page.php on line 319
    
    Warning: main(includes/templates/template_default/google_analytics/google_analytics.php) [function.main]: failed to open stream: Operation not permitted in /home/EasyLife/easylife.com/user/htdocs/cart/includes/templates/template_default/common/tpl_main_page.php on line 319
    
    Fatal error: main() [function.require]: Failed opening required 'includes/templates/template_default/google_analytics/google_analytics.php' (include_path='.:/usr/share/pear') in /home/EasyLife/easylife.com/user/htdocs/cart/includes/templates/template_default/common/tpl_main_page.php on line 319
    [/QUOTE][/HTML]


    Any help appreciated

    Chris Avery
    AEI Security

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

    Default Re: Simple Google Analytics - Support

    Chris,

    This error indicates that your host has enabled the PHP open_base_dir setting on your server. Your host needs to add your ZenCart installation folder to the allowed paths for this setting (i.e., add the file path referenced in the error as "not within the allowed path").

    The open_base_dir setting is primarily used to prevent php scripts for a particular user from accessing files in another user's account. So usually, any files in your own account should be readable by your own scripts.

    This setting could be why you are having so many issues. the version available for download in the Zen Cart Downloads section should be pretty easy to install. Just two files to upload and one file to alter.

    I went to your site, and I do not see the error message at all. It looks fine to me.

    When I perform a view source, I also noticed that the Google Analytics tracking is installed at the bottom of the page (correctly), HOWEVER, It also shows that you have the tracking code for "Conversion Tracking" at the bottom of the page as well.

    If you are trying to track conversions of sales, then you should only include that Conversion Tracking code at the bottom of the checkout_success page. You also need to account for it being a SSL or Non-SSL connection.

    Lastly, the code for Conversion Tracking should go just below the regular Google Analytics tracking code, but above the closing </BODY> tag. Right now you have it outside of the entire HTML document structure.
    Last edited by econcepts; 7 Aug 2007 at 04:12 PM. Reason: added more help
    Eric
    20 Ways to Increase Sales Using Zen Cart
    Zen Cart contribs: Simple Google Analytics, Export Shipping Information

  5. #5
    Join Date
    Jan 2007
    Posts
    14
    Plugin Contributions
    0

    Default Re: Simple Google Analytics - Support

    Just wondering - (and I apologize if this has been asked before) but what's the function of the Target Address option ?

  6. #6
    Join Date
    Sep 2007
    Posts
    19
    Plugin Contributions
    0

    Default Re: Simple Google Analytics - Support

    I just threw my analytics code into the footer.php page in the includes folder, works file!

  7. #7
    Join Date
    Sep 2007
    Posts
    16
    Plugin Contributions
    0

    Default Re: Simple Google Analytics - Support

    I just installed this mod, but for some reason, my favicon went away and now it's a windows icon.

    http://www.seasonsofautumn.com

    Anyone know how to fix? Coincidentally, the install is great - I assume it works, but I'll have to wait at least a day to see the reporst.

    Autumn
    [FONT="Comic Sans MS"]Bringing the seasons of art to life![/FONT]

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

    Default Re: Simple Google Analytics - Support

    The installation of this or any other module will not affect whether your favorite icon displays or not. I would recommend going back to the top of your header file somewhere and making sure you didn't alter anything there. That is where the favorite icon is set.

    This contribution does not mess with the header file in any way. Something else had to occur.

    :)

    Check to make sure another contribution that affects the header did not play a part in it. Just a thought. When I went to your page and did a view source, there was no favorite icon reference (which explains why it shows as a default windows icon.)
    Last edited by econcepts; 24 Sep 2007 at 04:16 AM. Reason: added info
    Eric
    20 Ways to Increase Sales Using Zen Cart
    Zen Cart contribs: Simple Google Analytics, Export Shipping Information

  9. #9
    Join Date
    Jan 2007
    Posts
    100
    Plugin Contributions
    0

    Default Re: Simple Google Analytics - Support

    Thank you for a great mod.

    Does it and Google Funnels work with shared SSL?

    I have the following issue. Since I am using shared SSL (my host's) my cart and checkout links are as follows:

    http://www.zipdrugs.com/shopping_car...r_of_uploads=0

    https://secure.MYHOST.com/~zipdrugs/login.html

    I set up Google Funnels so that cart page is step 1, and checkout/login page step 2 etc.

    Google Funnels tracks items/people going into cart but keeps showing 0 for all other steps. Therefore I am wondering if this mod and/or Google Funnels work with shared SSL.

    Also, does anyone know why shopping cart link above has number_of_uploads=0 in it eventhough i am not selling any uploads/downloads?

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

    Default Re: Simple Google Analytics - Support

    Funnels should work on shared or non shared SSL sites. Just make sure you use the correct url in your Google Account when adding the funnel path.
    Eric
    20 Ways to Increase Sales Using Zen Cart
    Zen Cart contribs: Simple Google Analytics, Export Shipping Information

 

 
Page 3 of 20 FirstFirst 1234513 ... LastLast

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