Page 143 of 217 FirstFirst ... 4393133141142143144145153193 ... LastLast
Results 1,421 to 1,430 of 2161
  1. #1421
    Join Date
    Dec 2005
    Posts
    1,509
    Plugin Contributions
    6

    Default Re: Simple Google Analytics - Support

    Quote Originally Posted by stylishbb123 View Post
    Hi,

    My version of Zen Cart (quite old due for upgrade) is V 1.3.8a.

    I installed Simple Google Analytics in an attempt to get google Ecommerce working.

    The install seemed to go OK, however when I did a test order, using "test bean bag" found in "pet bean bag" directory.

    The checkout_succes page didn't load completely, it loaded the background and nothing else.

    After reading online I downloaded and installed the ZenCart debug utility and it began outputting messages like the one below....




    Basically whats happening is that the html_header file cannot find the google_analytics.php file. After changing things around a bit and copying the google_analytics file into 3 different places namely

    my_template/checkout_success/google_analytics/
    my_template/checkout_success/
    my_template/google_analytics/

    There is no more output from the debug utility.

    However being the sceptic that I am, I'd like to ask... Even though all seems well, will the actual google analytics have survived the copying and pasting of files into different places in order to overcome the error, I'm thinking not?
    Copying it into those three areas probably isn't a good idea. That could throw off tracking.

    The reason you got a blank page is because there is a PHP error in your code (that you inserted to to 'require' the file on the page.)

    Looking at your error messages, it appears you are missing a 'slash' in the following location.

    google_analytics/google_analytics.php

    I would remove all areas you added the file to, only add it as directed in the install, and then make sure you have the slash in place so it can find the file in the proper location.

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

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

    Default Re: Simple Google Analytics - Support

    Quote Originally Posted by bubbas454 View Post
    Hi,

    I appear to be having the same issues as Jim

    I have configuered everything in admin but still getting this error at analytics:

    Profile Name: www.themakeupartistboutique.com
    Website URL: http://www.themakeupartistboutique.com
    Web Property ID [?] : UA-21172541-1
    Tracking Status: Warning Tracking Not Installed (Last checked: 08-Feb-2011 06:19:49 )
    The Google Analytics tracking code has not been detected on your website's homepage. For Analytics to function, you or your web administrator must add the code to each page of your website.

    Any idea?

    Many thanks

    Emma
    Check my reply to him. It sounds like it might be the same thing. Try adding the slash and recheck. Let me know if that works. (This is done within your Google Analytics account in the "Edit Profile" section for the site in question.
    Eric
    20 Ways to Increase Sales Using Zen Cart
    Zen Cart contribs: Simple Google Analytics, Export Shipping Information

  3. #1423
    Join Date
    Jan 2011
    Posts
    5
    Plugin Contributions
    0

    Default Re: Simple Google Analytics - Support

    I've got the script setup exactly as in the install instructions, however the checkout_success page now refuses to show.

    The error message from the debugger is
    [08-Feb-2011 19:54:50] PHP Warning: require(includes/templates/orange/checkout_success//google_analytics.php) [<a href='function.require'>function.require</a>]: failed to open stream: No such file or directory in /home2/stylish/public_html/includes/templates/orange/common/html_header.php on line 132
    [08-Feb-2011 19:54:50] PHP Warning: require(includes/templates/orange/checkout_success//google_analytics.php) [<a href='function.require'>function.require</a>]: failed to open stream: No such file or directory in /home2/stylish/public_html/includes/templates/orange/common/html_header.php on line 132
    [08-Feb-2011 19:54:50] PHP Fatal error: require() [<a href='function.require'>function.require</a>]: Failed opening required 'includes/templates/orange/checkout_success//google_analytics.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home2/stylish/public_html/includes/templates/orange/common/html_header.php on line 132
    essentially it is looking for the google analytics file here...

    includes/templates/orange/checkout_success//google_analytics.php

    instead of here

    includes/templates/orange/checkout_success/google_analytics/google_analytics.php

    however I'm unsure how to sort this problem. If i try to edit the directory in the html_header page the problem is still there except it will try to look eg. includes/templates/orange/checkout_success/google_analytics//google_analytics.php

    It is a really daft problem involving / and .. in php paths but I've tried adding and removing / and .. and all sorts of things and it keeps looking everywhere but the right place

  4. #1424
    Join Date
    Jan 2011
    Posts
    5
    Plugin Contributions
    0

    Default Re: Simple Google Analytics - Support

    I've managed to sort the problem however not in a way I'd have liked.

    Inside the checkout_success was a tpl_footer.php file as soon as I deleted this everything worked fine. It seems that as soon as any page is places into the checkout_success folder it causes this line...

    require($template->get_template_dir('.php',DIR_WS_TEMPLATE, $current_page_base,'google_analytics') . '/google_analytics.php');
    to fail as the $base_page changes to be looking /checkout_success and I've tried concatenating ../ and allsorts to this and can't get it up to parent directory.

    The issue now though is that the footer.php file was there for a reason, it contained custom Jrox code in it. So now how can I ensure that the Jrox code appears only on the checkout_success page BUT I'm not allowed to create any overrides?

    Alternatively, is there any way to include ../ or similar to force this line

    require($template->get_template_dir('.php',DIR_WS_TEMPLATE, $current_page_base,'google_analytics') . '/google_analytics.php');
    to look here /includes/templates/orange/google_analytics/google_analytics.php ?

    The sites URL is Stylish Bean Bags . co . uk if you want to take a look, at the minute though its working as I've still got the footer deleted. Its probably easier to put the Jrox code onto the checkout_success some other way, hopefully?

  5. #1425
    Join Date
    Feb 2011
    Posts
    4
    Plugin Contributions
    0

    Default Re: Simple Google Analytics - Support

    Quote Originally Posted by econcepts View Post
    Check my reply to him. It sounds like it might be the same thing. Try adding the slash and recheck. Let me know if that works. (This is done within your Google Analytics account in the "Edit Profile" section for the site in question.
    I have the same problem..
    I have tried the trailing slash as well..

    Any ideas..

    When I look at the source there is gaps in the lines..
    <script type="text/javascript">
    var _gaq = _gaq || [];
    _gaq.push(['_setAccount', 'UA-21272482-1']);

    _gaq.push(['_trackPageview']);

    (function() {
    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
    })();
    </script>

  6. #1426
    Join Date
    Feb 2010
    Posts
    18
    Plugin Contributions
    0

    Default Re: Simple Google Analytics - Support

    Quote Originally Posted by econcepts View Post
    Check my reply to him. It sounds like it might be the same thing. Try adding the slash and recheck. Let me know if that works. (This is done within your Google Analytics account in the "Edit Profile" section for the site in question.

    Yep tried it no idea what to try next or what I am actually doing wrong

  7. #1427
    Join Date
    Dec 2005
    Posts
    77
    Plugin Contributions
    0

    Default Re: Simple Google Analytics - Support

    Quote Originally Posted by econcepts View Post
    No, you don't need to uninstall and re-run the SQL. That is all fine (ignore the error messages as it just means the mod is already installed.)

    The reason you are not getting any tracking and Google says not installed is because you have not entered your Google Analytics tracking id into the site yet. :)

    I went to your site and did a view source. Your tracking id is "UA-xxxxx-xx". This is just filler I included in the mod (placeholder). You need to get the Google Analytics id from within your analytics account and then place it into the section found in the "Google Analytics Configuration" within the Zen Cart Admin (found under the 'Configuration' menu option.)

    Once you add that tracking id and save, you'll need to go back to your GA account and 'verify install' for the profile you are tracking.

    Google will then be able to verify the code exists and the tracking ID is correct. Shortly after (give it about 24 hours or so) you should start seeing tracking in your Google account.
    It is working. I kept hitting the back button and clicking on check status. I went out and signed back in and it shows "receiving data".
    thanks
    jim

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

    Default Re: Simple Google Analytics - Support

    Quote Originally Posted by stylishbb View Post
    I've managed to sort the problem however not in a way I'd have liked.

    Inside the checkout_success was a tpl_footer.php file as soon as I deleted this everything worked fine. It seems that as soon as any page is places into the checkout_success folder it causes this line...



    to fail as the $base_page changes to be looking /checkout_success and I've tried concatenating ../ and allsorts to this and can't get it up to parent directory.

    The issue now though is that the footer.php file was there for a reason, it contained custom Jrox code in it. So now how can I ensure that the Jrox code appears only on the checkout_success page BUT I'm not allowed to create any overrides?

    Alternatively, is there any way to include ../ or similar to force this line



    to look here /includes/templates/orange/google_analytics/google_analytics.php ?

    The sites URL is Stylish Bean Bags . co . uk if you want to take a look, at the minute though its working as I've still got the footer deleted. Its probably easier to put the Jrox code onto the checkout_success some other way, hopefully?
    Yes, that will cause issues (the added footer file in the 'checkout_success' directory.)

    I've written a number of posts that answer the JROX issue so that can be corrected as well.

    Here is your answer:

    http://www.zencartoptimization.com/2...-the-workbook/

    Scroll down to the comment I wrote on July 22, 2009. The details on how to make the two work together are there.

    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. #1429
    Join Date
    Dec 2005
    Posts
    1,509
    Plugin Contributions
    6

    Default Re: Simple Google Analytics - Support

    Quote Originally Posted by bubbas454 View Post
    Yep tried it no idea what to try next or what I am actually doing wrong
    @rorock and @bubbas454,

    Keep trying. The code looks right. Check Jim's reply in post #1429

    http://www.zen-cart.com/forum/showpo...postcount=1429

    He had the same issue and simply 'kept re-verifying'. Google eventually 'found it'.

    Let me know if you have similar experiences.
    Eric
    20 Ways to Increase Sales Using Zen Cart
    Zen Cart contribs: Simple Google Analytics, Export Shipping Information

  10. #1430
    Join Date
    Dec 2006
    Location
    Augusta, GA
    Posts
    72
    Plugin Contributions
    0

    Default Re: Simple Google Analytics - Support

    OK. I have two sites using Simple Google Analytics:

    scubadorag.com and supernutrient.com

    They are both using Zen 1.3.9h. They are almost identical on the back end. I have separate Google Analytics accounts tracking both. One is giving me results in the eCommerce area (scubadorag.com) and one isn't (supernutrient.com). I can't see anything that is different between the two and I'm about to lose my mind.

    I'm hoping that another set of eyes notices anything obvious that I've done to screw up.

    Thank you!

 

 

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

Bookmarks

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
Zen-Cart, Internet Selling Services, Klamath Falls, OR