Results 1 to 10 of 2161

Hybrid View

  1. #1
    Join Date
    Dec 2010
    Location
    Thailand
    Posts
    300
    Plugin Contributions
    2

    Default Re: Simple Google Analytics - Support

    Hello,

    I’ve installed this module a few days ago on our new zc site. (we already had a google analytics account using the Asynchronous code on our old static site.)

    - When I set the Asynchronous tracking preference under the admin, the product pages display blank.

    - When I set the ga.js tracking under the admin, the product pages display all right but they are not being tracked by google analytics. All other pages seem to get tracked all right.

    Do you know what’s wrong?

    our site is ezistock(dot)com
    Thanks much!

  2. #2
    Join Date
    Dec 2010
    Posts
    16
    Plugin Contributions
    0

    Default Re: Simple Google Analytics - Support

    Quote Originally Posted by Thannaree View Post
    ...
    - When I set the Asynchronous tracking preference under the admin, the product pages display blank.
    - When I set the ga.js tracking under the admin, the product pages display all right but they are not being tracked by google analytics. All other pages seem to get tracked all right.

    Do you know what’s wrong?
    Thanks much!
    Your code is in the wrong area of your page. I also think the onload line is not firing for your pages.
    Quote Originally Posted by econcepts
    ...
    Open the file "html_header.php" file from your template directory 'common' folder (making sure you have the proper location for the template you are using if custom.)

    1) Once opened, find the section of code that looks like this (usually just before the closing </HEAD> tag):
    Your code is in the bottom of your pages before the </body> tag.

  3. #3
    Join Date
    Dec 2010
    Location
    Thailand
    Posts
    300
    Plugin Contributions
    2

    Default Re: Simple Google Analytics - Support

    Redbaron2: Your code is in the bottom of your pages before the </body> tag.
    Yes its is. I've pasted both codes as indicated on the install instructions. This one is supposed to be pasted there on tpl_main_page.php. Perhaps you're refering to the one to be pasted on html_header.php before </head>...

    The body tag on tpl_main_page.php also includes the onload code.

    I don't understand why the code doesn't show on the product pages source only.

    Do you know what's wrong?

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

    Default Re: Simple Google Analytics - Support

    Quote Originally Posted by Thannaree View Post
    Yes its is. I've pasted both codes as indicated on the install instructions. This one is supposed to be pasted there on tpl_main_page.php. Perhaps you're refering to the one to be pasted on html_header.php before </head>...

    The body tag on tpl_main_page.php also includes the onload code.

    I don't understand why the code doesn't show on the product pages source only.

    Do you know what's wrong?
    A blank page means you have an error in your PHP somewhere.
    Most likely from something inadvertently altered during install (specifically during the install portion where you had to add the few lines of code to the html header and tpl main page files.)

    To correct this you need to find where your error is. To find the erro you should turn on error logging in your cart (if you have zen 1.3.9 + it is already turned on by default.) If you have an older version of zen cart (lower than 1.3.9) you'll need to add the error logging to your site (just a single file) using the following file and instructions.

    http://www.zen-cart.com/forum/showthread.php?t=84613

    Once you have that in place, just activate the contribution (asyc code if that is what causes the error / white page) and then navigation to the product page. (This will throw the 'white page').

    Now go to your server (FTP in) and look at the error log that was just generated in the /cache/ directory (starts with "myDEBUG..."). Download that, open it and read the error message. It should tell you the exact line and location of the error.

    Find that section of code and rework it adding the missing element and you should be ready to go.

    Let me know if you have any other problems. I'd be happy to walk you through them.
    Eric
    20 Ways to Increase Sales Using Zen Cart
    Zen Cart contribs: Simple Google Analytics, Export Shipping Information

  5. #5
    Join Date
    Dec 2010
    Location
    Thailand
    Posts
    300
    Plugin Contributions
    2

    Default Re: Simple Google Analytics - Support

    Hi econcepts,
    WHEW! It appears there was a "product_info" folder including a tpl_main_page file under my custom template. I'm not sure why there was such folder there. I just removed it and it's now puling the info from the correct tpl_main_page file where the script is. It now all works perfectly. Thanks much for helping me out here, and teaching me how to use the debug feature in the process! I owe you a big one ...

  6. #6
    Join Date
    Feb 2011
    Posts
    1
    Plugin Contributions
    0

    Default Re: Simple Google Analytics - Support

    I am using ZC v1.3.9h on a new install. I am using the template lite_green by 12leaves.com.

    In the instructions under step 3 (part B) it says to modify html_header.php, my template does not have this file?

    Where should I make the following code changes?

  7. #7
    Join Date
    Dec 2010
    Location
    Thailand
    Posts
    300
    Plugin Contributions
    2

    Default Re: Simple Google Analytics - Support

    trusupport, it's under the template_default, here:
    /includes/templates/template_default/common/html_header.php
    save it under your template here:
    /includes/templates/[your_template]/common/html_header.php
    and paste the code as indicated in the install file.

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

    Default Re: Simple Google Analytics - Support

    Quote Originally Posted by trusupport View Post
    I am using ZC v1.3.9h on a new install. I am using the template lite_green by 12leaves.com.

    In the instructions under step 3 (part B) it says to modify html_header.php, my template does not have this file?

    Where should I make the following code changes?
    Thannaree said it but I wanted to clarify one thing that can be confusing to some.

    trusupport, it's under the template_default, here:
    /includes/templates/template_default/common/html_header.php

    COPY that file to your custom template directory (which will activate the zen cart overrides) found here:

    /includes/templates/[your_template]/common/html_header.php
    and paste the code as indicated in the install file.

    (where [your_template] is replaced by the actual name of the template directory you are using.)
    Just wanted to clarify as I see many getting confused with wondering 'how to save it' etc...

    Thanks to Thannaree for the original response.
    Eric
    20 Ways to Increase Sales Using Zen Cart
    Zen Cart contribs: Simple Google Analytics, Export Shipping Information

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

    Default Re: Simple Google Analytics - Support

    Quote Originally Posted by Thannaree View Post
    Hi econcepts,
    WHEW! It appears there was a "product_info" folder including a tpl_main_page file under my custom template. I'm not sure why there was such folder there. I just removed it and it's now puling the info from the correct tpl_main_page file where the script is. It now all works perfectly. Thanks much for helping me out here, and teaching me how to use the debug feature in the process! I owe you a big one ...
    Anytime. :)
    Eric
    20 Ways to Increase Sales Using Zen Cart
    Zen Cart contribs: Simple Google Analytics, Export Shipping Information

 

 

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