Page 1 of 2 12 LastLast
Results 1 to 10 of 2161

Hybrid View

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

    Default Re: Simple Google Analytics - Support

    A blank screen likely means you have an error in your PHP somewhere. To find out where it is you could enable the error logging in your cart , install the files, try to access them, and then view the log that is created. This will tell you right where the error is and you can correct it.

    I suspect that during install of step 3, something was removed by accident.

    The error logging is built in to your version. All you have to do is look at the log.
    Eric
    20 Ways to Increase Sales Using Zen Cart
    Zen Cart contribs: Simple Google Analytics, Export Shipping Information

  2. #2
    Join Date
    Nov 2010
    Posts
    2
    Plugin Contributions
    0

    Default Re: Simple Google Analytics - Support

    Quote Originally Posted by econcepts View Post
    A blank screen likely means you have an error in your PHP somewhere. To find out where it is you could enable the error logging in your cart , install the files, try to access them, and then view the log that is created. This will tell you right where the error is and you can correct it.

    I suspect that during install of step 3, something was removed by accident.

    The error logging is built in to your version. All you have to do is look at the log.

    Too bad the debugger doesn't have a dum-dum output for operator using notepad++. Do I need to say more?




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

    Default Re: Simple Google Analytics - Support

    Hi. Searching this thread, so far I do not see a reference to text appearing on the home page from the includes/templates/my_template/common/html_header.php.

    My home page at www.gokaraokemachine.com shows the following text at the very top:

    /* Begin Simple Google Analytics */ /* End Simple Google Analytics */
    I saw that there was an HTML-related problem in 1.3.9g that was fixed in 1.3.9h. I'm not actually sure this is HTML appearing. I had just gone live when I upgraded to 1.3.9h from 1.3.9g and noticed this problem which I had not noticed before. I just recently upgraded from Simple Google Analytics version 1.2.2 to 1.2.3. My ISP just implemented PHP 5.3.2-1ubuntu4.5.

    Any tips would be appreciated. I apologize if this has been discussed somewhere in this thread--I just couldn't find the right search term.

  4. #4
    Join Date
    Jan 2009
    Posts
    69
    Plugin Contributions
    0

    Default Re: Simple Google Analytics - Support

    Hi

    I followed the instructions but couldnt find the step 2.

    /includes/templates/[your_template]/common/tpl_main_page.php

    I dont have this file as above, is there any other files i can put the step 3 codes on?

  5. #5
    Join Date
    Nov 2010
    Posts
    4
    Plugin Contributions
    0

    Default Re: Simple Google Analytics - Support

    Good Friday morning all. I've been asked to do some SEO work on a Zen Cart (which I've never used) site so I've been doing research here and in manuals for the last 2 days. I'm getting ready to install Simple SEO and Simple Google Analytics and just wanted to see if there were any issues I should anticipate. I'm going through the last 50 pages of the support forum for Simple SEO and then I'll do the same for Simple Google. The only variable I may intoduce is that after I get these 2 set up I intend to create a custom opening page that I've already created in PhotoShop in HTML. It's just easier for me right now until I get more familiar with Zen Cart. I hope this isn't going to break anything.
    Also, when I was forced to do a Drupal site 2 years ago they had an (buggy) Admin module that allowed me to select any element on the page and it would show the template heirarchy which made it very easy for a newbie. Is there anything comparable to this in Zen Cart?
    Oh, I've already installed Module Manager if that makes a difference.

    Thanks

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

    Default Re: Simple Google Analytics - Support

    juneloveelyn,

    If you installed a "template" to replace the default Zen Cart, the "my_template" should be replaced with that template's name, i.e., includes/templates/apple_zen/common/tpl_main_page.php.

    When you installed the Simple Google Analytics module, there was a "my_template" that was to be renamed with the template you are using. If you are using the default and have not installed a template, I believe there is a routine to follow where you duplicate all of the template_default directories in your cart and name them "classic" so you can use the overrides system. I'm sure this is explained somewhere--in a tutorial, possibly. Of course, then you would go to Admin>Configuration>templates (I think) and choose the classic template (which is a duplicate of the default template, of course).

    If you are using the default "classic" Zen Cart template, then place the code in includes/templates/template_default/common/tpl_main_page.php.

    You are witnessing the overrides system in action (or inaction). When you install a template, usually the index page is governed by the tpl_main_page.php. That file is derived from the template_default/tpl_main_page.php, and then saved in the new template directory. You then have a copy of the default Zen Cart template for later use, plus a copy of the modified "override" template, which is the one Zen Cart will use.

    It will work if you just save it under the template_default, but if you use the method above to use a "classic" duplicate of the default, then you will have an override system. Then, in includes/templates/classic/common/tpl_main_page.php, copy the modified file tpl_main_page.php into that file, and that would be the override. That would preserve changes as overrides, thereby making future upgrades easier because you could identify your changed files more easily and upgrade any of those changed files that might be involved in the upgrade, if any.

    Sorry to be so wordy. It's just a great opportunity to consider the override system in a non-abstract way.
    Last edited by notageek; 19 Nov 2010 at 09:05 PM.

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

    Default Re: Simple Google Analytics - Support

    Still trying to sort out my issue of the following code appearing at the top of the header at www.gokaraokemachine.com:

    /* Begin Simple Google Analytics */ /* End Simple Google Analytics */
    I am starting to wonder if this is really correct HTML code? Are there not supposed to be double slashes for comments such as these? Is this a new type of HTML or a PHP convention? Asking these questions here gives me a direction to research next.

    I simply copied the code into my html_header.php before the </head>. One thing I tried was a line of space before and after the inserted code. Of course, my site went blank.

    Another potential avenue might be some sort of connection to the new axynchronous tracking type that this code is supposed to enable. Maybe there is some setting I need to make to cause this unwanted verbiage/code to disappear from my home page header. I need to go to the Google Analytics site and try to set this up more effectively.

    I will post if I make any discoveries in these avenues of research.

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

    Default Re: Simple Google Analytics - Support

    Maybe I should uninstall and reinstall.

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

    Default Re: Simple Google Analytics - Support

    Quote Originally Posted by notageek View Post
    Still trying to sort out my issue of the following code appearing at the top of the header at www.gokaraokemachine.com:

    I am starting to wonder if this is really correct HTML code? Are there not supposed to be double slashes for comments such as these? Is this a new type of HTML or a PHP convention? Asking these questions here gives me a direction to research next.
    Nope. Just a result of human error. Read below for your answer. :)

    Quote Originally Posted by notageek View Post
    I will post if I make any discoveries in these avenues of research.
    I'll save you some time here. The answer is as follows:

    I went to your site and see what you did wrong.

    You copied the text from the readme file and included the comments I had in the readme (that were not supposed to be included on the page but were only for illustration in the readme.)

    You're only supposed to copy the PHP lines of code (as per the instructions).

    So when you copied the information you also copied the commented text directly from the text file. When you do this with any text, and add it to a file that will be put to the internet, it will render as text on the page (as is in your case).

    To remove it, just remove the lines of code that you didn't need in the first place and only include the PHP portions. That will remove it from your site.
    Last edited by econcepts; 20 Nov 2010 at 03:42 PM.
    Eric
    20 Ways to Increase Sales Using Zen Cart
    Zen Cart contribs: Simple Google Analytics, Export Shipping Information

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

    Default Re: Simple Google Analytics - Support

    Quote Originally Posted by tally622 View Post
    Good Friday morning all. I've been asked to do some SEO work on a Zen Cart (which I've never used) site so I've been doing research here and in manuals for the last 2 days. I'm getting ready to install Simple SEO and Simple Google Analytics and just wanted to see if there were any issues I should anticipate. I'm going through the last 50 pages of the support forum for Simple SEO and then I'll do the same for Simple Google. The only variable I may intoduce is that after I get these 2 set up I intend to create a custom opening page that I've already created in PhotoShop in HTML. It's just easier for me right now until I get more familiar with Zen Cart. I hope this isn't going to break anything.
    Also, when I was forced to do a Drupal site 2 years ago they had an (buggy) Admin module that allowed me to select any element on the page and it would show the template heirarchy which made it very easy for a newbie. Is there anything comparable to this in Zen Cart?
    Oh, I've already installed Module Manager if that makes a difference.

    Thanks
    Installing these two mods will not cause a problem. They both work just fine together. Neither uses the module manager contribution, and in fact, not many modules use that at the moment.
    Eric
    20 Ways to Increase Sales Using Zen Cart
    Zen Cart contribs: Simple Google Analytics, Export Shipping Information

 

 
Page 1 of 2 12 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