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

    @cotsweb,

    Mark, I have another idea here that should work if the last bit of info I sent doesn't.

    I made a quick change to the code to place the tracking in a different location (for custom variables).

    But again, try what I mention below first and let me know if it works before we go this route.

    Let me know. Thanks!
    Eric
    20 Ways to Increase Sales Using Zen Cart
    Zen Cart contribs: Simple Google Analytics, Export Shipping Information

  2. #2
    Join Date
    Oct 2007
    Location
    Stow on the Wold, in the Cotswolds - England
    Posts
    13
    Plugin Contributions
    0

    Default Re: Simple Google Analytics - Support

    Thanks Eric,
    I have amended my code to the following;
    _gaq.push(['_setCustomVar',1,'shopLevel','Production',3]);
    _gaq.push(['_trackEvent','Shopping','Database Level',]);
    I will see what Google Analytics reports tomorrow and let you know the results.

    Thanks for your prompt reply.
    Mark
    [FONT="Verdana"]cotsweb.com[/FONT]

  3. #3
    Join Date
    Nov 2009
    Posts
    60
    Plugin Contributions
    0

    Default Re: Simple Google Analytics - Support

    Help!

    I have installed this fine on a test site. But when I installed to live site it went BLANK?

    Anyone had this before?

  4. #4
    Join Date
    Nov 2009
    Posts
    60
    Plugin Contributions
    0

    Default Re: Simple Google Analytics - Support

    Just to add more details to above post;

    The file causing the problem is;

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

    If i remove the code snippet added just before the </head> the site is visable again.

    Can other modules be causing a problem?
    That's the only difference between my test site & this live site.

  5. #5
    Join Date
    May 2007
    Posts
    471
    Plugin Contributions
    0

    Default Re: Simple Google Analytics - Support

    Hey Eric, it is definitely set up properly in Analytics ...... I am baffled!
    Jill || I Love Zen Cart Templates || 2 Dogs Design
    I Love To Help But Let's Keep It Public Please To Help Others!

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

    Default Re: Simple Google Analytics - Support

    Quote Originally Posted by jill8026 View Post
    Hey Eric, it is definitely set up properly in Analytics ...... I am baffled!
    That is odd Jill. Can you send me the info to get in and look at the site (if you want)? You've got my email from earlier conversations.

    I'd be interested in seeing what might be causing that.

    What I would be looking for is the GA login as well as the FTP etc... I want to compare files and look at any possible issues in GA setup.

    Thanks!
    Eric
    20 Ways to Increase Sales Using Zen Cart
    Zen Cart contribs: Simple Google Analytics, Export Shipping Information

  7. #7
    Join Date
    Nov 2009
    Posts
    60
    Plugin Contributions
    0

    Default Re: Simple Google Analytics - Support

    Thanks for quick reply econcepts & cotsweb,

    I will try both methods & report back.

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

    Default Re: Simple Google Analytics - Support

    Quote Originally Posted by yamadan View Post
    Just to add more details to above post;

    The file causing the problem is;

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

    If i remove the code snippet added just before the </head> the site is visable again.

    Can other modules be causing a problem?
    That's the only difference between my test site & this live site.
    A blank site means you have a PHP error somewhere. Make certain that the code is exact for that file from site to site.

    The best way to do this is to perform a "winmerge" comparison on the two files. This will show you where there are any differences between the two and likely lead you to your problem.

    The other thing you can do is to check your error log file (generated in the cache directory) for the root of the problem (on the live site.) As long as you have that turned on (by default in 1.3.9 + but needs to be added in 1.3.8 and under) you'll get the exact spot that the problem is occurring.

    Let me know if that helps.
    Eric
    20 Ways to Increase Sales Using Zen Cart
    Zen Cart contribs: Simple Google Analytics, Export Shipping Information

  9. #9
    Join Date
    Oct 2007
    Location
    Stow on the Wold, in the Cotswolds - England
    Posts
    13
    Plugin Contributions
    0

    Idea or Suggestion Re: Simple Google Analytics - Support

    Quote Originally Posted by yamadan View Post
    Just to add more details to above post;

    The file causing the problem is;

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

    If i remove the code snippet added just before the </head> the site is visable again.

    Can other modules be causing a problem?
    That's the only difference between my test site & this live site.
    Hi Yamadan,
    I don't know if this is the same problem that I had in a recent install but you could try the following snippet;
    <?php
    if (GOOGLE_ANALYTICS_TRACKING_TYPE == "Asynchronous") {
    require($template->get_template_dir('google_analytics.php',DIR_WS_TEMPLATE, $current_page_base,'google_analytics') . '/google_analytics.php');
    }
    ?>
    The only difference between this version and the original is that I have put the full module name 'google_analytics.php' in as the first parameter to get_template_dir(). The original just puts in '.php' for this parameter.

    I'm not sure why the original version didn't work for me, I think it should, but it was a quick and simple fix.

    Hope this helps
    Mark
    [FONT="Verdana"]cotsweb.com[/FONT]

  10. #10
    Join Date
    Oct 2007
    Location
    Stow on the Wold, in the Cotswolds - England
    Posts
    13
    Plugin Contributions
    0

    Default Re: Simple Google Analytics - Support

    Hi Eric,
    The following sort of works;
    _gaq.push(['_setCustomVar',1,'shopLevel','Production',3]);
    _gaq.push(['_trackEvent','Shopping','Database Level',]);
    I can use CustomVar 1 in an advance segment but it shows the values as 'shopLevel' rather than 'Production' which is what I hoped for, still it is usable.

    But to save time I have decided just to create an advanced segment on Host Name which gives me a similar result but without messing with custom variables. Nice of you to include it in the module though, I may need it in the future.

    Regards
    Mark
    [FONT="Verdana"]cotsweb.com[/FONT]

 

 
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