Page 131 of 217 FirstFirst ... 3181121129130131132133141181 ... LastLast
Results 1,301 to 1,310 of 2161
  1. #1301
    Join Date
    Aug 2009
    Location
    Longs, SC
    Posts
    626
    Plugin Contributions
    2

    Default Re: Simple Google Analytics - Support

    I'm confused. I've installed and configured the mod and my site is receiving data. I need to continue to track ecommerce conversions but I can't seem to get that section of the tracking code to generate. It seems like this code is not triggering as true:
    if($page_directory == 'includes/modules/pages/checkout_success') {

    and the else clause is treating it as a normal page.

    Any ideas?

    btw I'm running 1.3.9g with cowoa added

  2. #1302
    Join Date
    Aug 2010
    Posts
    13
    Plugin Contributions
    0

    Default Re: Simple Google Analytics - Support

    Hello,

    I just checked again, now it says receiving data. I thought that sign comes up right away, but guess not. Thank you.

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

    Default Re: Simple Google Analytics - Support

    Quote Originally Posted by badarac View Post
    I'm confused. I've installed and configured the mod and my site is receiving data. I need to continue to track ecommerce conversions but I can't seem to get that section of the tracking code to generate. It seems like this code is not triggering as true:
    if($page_directory == 'includes/modules/pages/checkout_success') {

    and the else clause is treating it as a normal page.

    Any ideas?

    btw I'm running 1.3.9g with cowoa added
    Are you sure you are running SIMPLE Google Analytics? That line is not in any of my code. I think you must be running Andrew's version of Google analytics.

    My version (Simple Google Analytics) has ecommerce tracking built in by default no site or code adjustments needed.

    My version also works on all zen cart version (even 1.3.9 +)
    Last edited by econcepts; 2 Oct 2010 at 01:47 PM. Reason: Added more info
    Eric
    20 Ways to Increase Sales Using Zen Cart
    Zen Cart contribs: Simple Google Analytics, Export Shipping Information

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

    Default Re: Simple Google Analytics - Support

    Quote Originally Posted by nycxkkoma View Post
    Hello,

    I just checked again, now it says receiving data. I thought that sign comes up right away, but guess not. Thank you.
    Yes, it can take time for Google to show that it is receiving data.

    Glad you got it working!
    Eric
    20 Ways to Increase Sales Using Zen Cart
    Zen Cart contribs: Simple Google Analytics, Export Shipping Information

  5. #1305
    Join Date
    Aug 2009
    Location
    Longs, SC
    Posts
    626
    Plugin Contributions
    2

    Default Re: Simple Google Analytics - Support

    Quote Originally Posted by econcepts View Post
    Are you sure you are running SIMPLE Google Analytics? That line is not in any of my code. I think you must be running Andrew's version of Google analytics.

    My version (Simple Google Analytics) has ecommerce tracking built in by default no site or code adjustments needed.

    My version also works on all zen cart version (even 1.3.9 +)
    Hi Eric,
    Yes I checked and it is in fact your mod. That line of code appears in your includes/templates/my_templates/google_analytics/google_analytics.php
    at around line 81. For some reason it's not detecting that the calling page is checkout_success. I added some text to the else path to verify that it was in fact executing the else code and it is. Any suggestions?

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

    Default Re: Simple Google Analytics - Support

    Quote Originally Posted by badarac View Post
    Hi Eric,
    Yes I checked and it is in fact your mod. That line of code appears in your includes/templates/my_templates/google_analytics/google_analytics.php
    at around line 81. For some reason it's not detecting that the calling page is checkout_success. I added some text to the else path to verify that it was in fact executing the else code and it is. Any suggestions?
    I see that here. Are you using the newest version? (I thought I changed that line a while back ... it will be altered in the next release (out soon with some great new features.)

    Do this for me.

    Change that line of code to the following and see if it has any effect (this is the line of code that it is being altered to in the new release)

    PHP Code:
    if ($_GET['main_page']=="checkout_success") { 
    So you are removing the previous line of code and in place of it adding this. (Do this in each location that appears in the script.)

    Let me know if that has any impact. I've never heard of this mod every causing any issues with that line (or ecommerce tracking at all) and I've got it running on 1.3.9+ versions with no issues.

    There is always a first time for everything though and we'll figure out what is causing it.

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

  7. #1307
    Join Date
    Aug 2009
    Location
    Longs, SC
    Posts
    626
    Plugin Contributions
    2

    Default Re: Simple Google Analytics - Support

    Quote Originally Posted by econcepts View Post
    I see that here. Are you using the newest version? (I thought I changed that line a while back ... it will be altered in the next release (out soon with some great new features.)

    Do this for me.

    Change that line of code to the following and see if it has any effect (this is the line of code that it is being altered to in the new release)

    PHP Code:
    if ($_GET['main_page']=="checkout_success") { 
    So you are removing the previous line of code and in place of it adding this. (Do this in each location that appears in the script.)

    Let me know if that has any impact. I've never heard of this mod every causing any issues with that line (or ecommerce tracking at all) and I've got it running on 1.3.9+ versions with no issues.

    There is always a first time for everything though and we'll figure out what is causing it.

    Let me know if the above works!
    I made the change and it still doesn't detect the checlout success module. Here's what is being generated on the checkout success page:

    <script type="text/javascript">
    var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
    document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
    </script>
    <script type="text/javascript">
    var pageTracker = _gat._getTracker("UA-xxxxxxx-1");
    pageTracker._initData();
    pageTracker._trackPageview();
    </script></body></html>

    I made the change two places in the file. Here is the version info from the install file:
    Version Date: v 1.2.2 01/09/2008 Eric Leuenberger (Zen ID: econcepts) http://www.zencartoptimization.com. If there's a different version available somewhere for download I'll be happy to try it.

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

    Default Re: Simple Google Analytics - Support

    Quote Originally Posted by badarac View Post
    I made the change and it still doesn't detect the checlout success module. Here's what is being generated on the checkout success page:

    <script type="text/javascript">
    var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
    document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
    </script>
    <script type="text/javascript">
    var pageTracker = _gat._getTracker("UA-xxxxxxx-1");
    pageTracker._initData();
    pageTracker._trackPageview();
    </script></body></html>

    I made the change two places in the file. Here is the version info from the install file:
    Version Date: v 1.2.2 01/09/2008 Eric Leuenberger (Zen ID: econcepts) http://www.zencartoptimization.com. If there's a different version available somewhere for download I'll be happy to try it.
    A few things.

    1) Your tracking code is not in place. I see 'UA-xxxxxxx-1' and that should be your tracking code. Make sure you enter that code within the admin or the tracking will not work.

    2) Are you running any affiliate programs or anything else that might affect the checkout page? If so, there is a different way I'll have you integrate it. Sometimes those mods make alterations to the checkout success page that override any tracking.

    3) You might want to switch to the Urchin form of the tracking for a short time as it is more accurate on ecommerce tracking. But I don't see the ecom tracking code on the thank you page (likely due to other mods which alter the checkout success page as mentioned) and so this is just a side note to consider.

    Let me know answers to the above and if you want to send me a url to the site I can look at that as well.
    Eric
    20 Ways to Increase Sales Using Zen Cart
    Zen Cart contribs: Simple Google Analytics, Export Shipping Information

  9. #1309
    Join Date
    Aug 2009
    Location
    Longs, SC
    Posts
    626
    Plugin Contributions
    2

    Default Re: Simple Google Analytics - Support

    Quote Originally Posted by econcepts View Post
    A few things.

    1) Your tracking code is not in place. I see 'UA-xxxxxxx-1' and that should be your tracking code. Make sure you enter that code within the admin or the tracking will not work.

    2) Are you running any affiliate programs or anything else that might affect the checkout page? If so, there is a different way I'll have you integrate it. Sometimes those mods make alterations to the checkout success page that override any tracking.

    3) You might want to switch to the Urchin form of the tracking for a short time as it is more accurate on ecommerce tracking. But I don't see the ecom tracking code on the thank you page (likely due to other mods which alter the checkout success page as mentioned) and so this is just a side note to consider.

    Let me know answers to the above and if you want to send me a url to the site I can look at that as well.
    Sorry, I should have mentioned that I edited the account number.. It's actually set in the config settings.

    I'm not running any affiliate programs and the only mod to the tpl_checkout_success_default.php is from the current COWOA mod. The analytics code is being called from the main page which was unmodified until I added the following line as instructed <?php
    require($template->get_template_dir('.php',DIR_WS_TEMPLATE, $current_page_base,'google_analytics') . '/google_analytics.php');
    ?>. Otherwise it is unmodified from the one in template_default.

    The site is www.beachtradingco.com. You can call me on the 800 number if you want to kick stuff around real time.

  10. #1310
    Join Date
    Aug 2009
    Location
    Longs, SC
    Posts
    626
    Plugin Contributions
    2

    Default Re: Simple Google Analytics - Support

    Just a quick update. I added a line to have it echo the main_page in each path of the if statement. It seems that for some reason the main page variable as soon as I start the checkout process is set to time_out. It stays set at that value through the entire checkout process. This has to be related somehow to the COWOA mod but so far I can't see it. The url is correctly built for each checkout page. Weird.

 

 

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