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

Hybrid View

  1. #1

    Default Re: Simple Google Analytics - Support

    econcepts,
    I am using the simple google analytics mod for about 3 months. it installed great. I am getting data for all but one very important page:
    /index.php?main_page=checkout_success

    This page does not get picked up in a content report or as a goal when a sale occurs. So everything works great except the one feature I would really like, conversion tracking.

    I have entered it in as a head match goal with this in the input:
    /index.php?main_page=checkout_success

    I am running zen cart 1.3.8a and also have Fast Easy Checkout mod installed from numinix. Would these two mods conflict? I am also doing AIM CC processing on site with Authorize.net.

    Also, the code looks slightly different between what google wants and what displays on my site:
    Google Code:

    <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">
    try {
    var pageTracker = _gat._getTracker("UA-xxxxxxx-1");
    pageTracker._trackPageview();
    } catch(err) {}</script>

    shows on my 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-xxxxxxxx-1");
    pageTracker._initData();
    pageTracker._trackPageview();
    </script>

    Any Thoughts on how to resolve this issue?

    3Sigma

  2. #2
    Join Date
    Jun 2009
    Posts
    49
    Plugin Contributions
    0

    Default Re: Simple Google Analytics - Support

    I just checked the Google Analytics page...and, it looks like it is working fine !!!

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

    Default Re: Simple Google Analytics - Support

    Quote Originally Posted by kramerr View Post
    I just checked the Google Analytics page...and, it looks like it is working fine !!!
    Glad to hear you got it working :)
    Eric
    20 Ways to Increase Sales Using Zen Cart
    Zen Cart contribs: Simple Google Analytics, Export Shipping Information

  4. #4
    Join Date
    Mar 2009
    Posts
    48
    Plugin Contributions
    0

    Default Re: Simple Google Analytics - Support

    Hello, I have installed this add-on and it almost works.

    2 things are not working:

    Ecommerce reporting shows no sales

    I have enabled the "Ecommerce Website" through Google Analytics.

    Goals are not being tracked, my funnel looks like this:

    1. /index.php?main_page=product_info
    2. /index.php?main_page=shopping_cart
    3. /index.php?main_page=checkout_shipping
    4. /index.php?main_page=checkout_payment
    5. /index.php?main_page=checkout_confirmation

    Ideas? Thanks!

  5. #5
    Join Date
    Mar 2009
    Posts
    48
    Plugin Contributions
    0

    Default Re: Simple Google Analytics - Support

    Forgot to add, the store is at: http://www.iscatech.com/ecommerce/

    Thanks!

  6. #6
    Join Date
    Feb 2009
    Location
    Simi Valley, CA
    Posts
    100
    Plugin Contributions
    0

    Default Re: Simple Google Analytics - Support

    Hi,

    I apologize if this problem was posted elsewhere, but my google analytics is no longer tracking.

    I installed the simple google analytics mod and updated my includes/templates/my_template/common/tpl_main_page with this code:

    <?php include($template->get_template_dir('tpl_footer_googleanalytics.php',DIR_WS_TEMPLATE, $current_page_base,'common'). '/tpl_footer_googleanalytics.php'); ?>
    I also updated the admin with the google account number and tested. Everything worked fine at that point. Since then I have had two orders that did not register with Google Analytics.

    I also have JROX installed, however that integration is in the tpl_footer.php file.

    Any feedback always immensly appretiated!

    Thank you,

    Michelle

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

    Default Re: Simple Google Analytics - Support

    Quote Originally Posted by mcarbone View Post
    Hi,

    I apologize if this problem was posted elsewhere, but my google analytics is no longer tracking.

    I installed the simple google analytics mod and updated my includes/templates/my_template/common/tpl_main_page with this code:



    I also updated the admin with the google account number and tested. Everything worked fine at that point. Since then I have had two orders that did not register with Google Analytics.

    I also have JROX installed, however that integration is in the tpl_footer.php file.

    Any feedback always immensly appretiated!

    Thank you,

    Michelle
    Google analytics JAM Affiliate Integration Instructions for Zen Cart
    ===========================================================================


    1) DELETE the directory and file found here /includes/templates/[your template directory here]/checkout_success/tpl_footer.php



    2) Open the following file:

    /includes/templates/[your template directory here]/common/tpl_main_page.php


    And replace the following code at the bottom of the page

    PHP Code:
    <?php
    require($template->get_template_dir('.php',DIR_WS_TEMPLATE$current_page_base,'google_analytics') . '/google_analytics.php');
    ?>

    With this code (making sure you put your actual domain name in place of "yourdomainhere.com" in the JAM AFFILIATE portion.)


    PHP Code:
    <?php
    require($template->get_template_dir('.php',DIR_WS_TEMPLATE$current_page_base,'google_analytics') . '/google_analytics.php');
    ?>
    <?php 
    if ($_GET['main_page']=="checkout_success") {

    ##########################################
    ## START JAM INTEGRATION WITH ZEN CART  ##
    ## ZC Integration code by DrByte 8/2006 ##
    ##########################################

    if (isset($zv_orders_id) && (int)$zv_orders_id && isset($order_summary) && is_array($order_summary)) {

      if (!isset(
    $_SESSION['affiliate_order_id']) || $_SESSION['affiliate_order_id'] != $zv_orders_id ) {

          
    $_SESSION['affiliate_order_id'] = $zv_orders_id;

         
    $commissionable_order_formatted number_format($order_summary['commissionable_order'], 2'.''');

         echo 
    '<script language="javascript" type="text/javascript" src="https://www.yourdomainhere.com/affiliates/sale.php?amount=' $commissionable_order_formatted '&trans_id=' $order_summary['order_number'] . '"></script>';

        }

    }

    #######################################
    ## END JAM INTEGRATION WITH ZEN CART ##
    #######################################

    // end if for determining if this was the checkout_success page.?>

    3) Save and upload the tpl_main_page.php and you're all set.

    .
    Last edited by econcepts; 22 Jul 2009 at 04:06 PM. Reason: edited for clarification
    Eric
    20 Ways to Increase Sales Using Zen Cart
    Zen Cart contribs: Simple Google Analytics, Export Shipping Information

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

    Default Re: Simple Google Analytics - Support

    Quote Originally Posted by iscatech View Post
    Hello, I have installed this add-on and it almost works.

    2 things are not working:

    Ecommerce reporting shows no sales

    I have enabled the "Ecommerce Website" through Google Analytics.

    Goals are not being tracked, my funnel looks like this:

    1. /index.php?main_page=product_info
    2. /index.php?main_page=shopping_cart
    3. /index.php?main_page=checkout_shipping
    4. /index.php?main_page=checkout_payment
    5. /index.php?main_page=checkout_confirmation

    Ideas? Thanks!
    Make sure your goal url is as follows:

    I can't see that part of your setup but that could cause the problem you mention. It should be:

    /index.php?main_page=checkout_success (notice the slash in front)

    If that does not work then I have had success with entering the full url to the success page as such:

    https://www.yourdomain.com/index.php?main_page=checkout _success

    Either one of those should work for you.

    Let me know if either of those work.
    Eric
    20 Ways to Increase Sales Using Zen Cart
    Zen Cart contribs: Simple Google Analytics, Export Shipping Information

  9. #9
    Join Date
    Mar 2009
    Posts
    48
    Plugin Contributions
    0

    Default Re: Simple Google Analytics - Support

    Ok, I changed to the full addresses and now my goals work great! Thank you econcepts!

    I am still not registering any sales in the eCommerce area, any ideas? I've read the instructions on Google Analytics and it refers to adding some code on the receipt page, like _addTrans() and _addItem() functions, but I don't understand this... any help?

  10. #10
    Join Date
    Feb 2009
    Location
    Simi Valley, CA
    Posts
    100
    Plugin Contributions
    0

    Default Re: Simple Google Analytics - Support

    Hi econcepts,

    Thank you for your help, but it is still not working.

    I did #1 as requested below, but instead of checkout_success/tpl_footer.php, I deleted the includes/templates/[your template directory here]/templates/tpl_footer.php which is what I thought you meant.
    1) DELETE the directory and file found here /includes/templates/[your template directory here]/checkout_success/tpl_footer.php
    I then inserted the following code in /includes/templates/[my template]/common/tpl_main_page.php

    Code:
    <?php
    require($template->get_template_dir('.php',DIR_WS_TEMPLATE, $current_page_base,'google_analytics') . '/google_analytics.php');
    ?>
    <?php 
    if ($_GET['main_page']=="checkout_success") {
    
    ##########################################
    ## START JAM INTEGRATION WITH ZEN CART  ##
    ## ZC Integration code by DrByte 8/2006 ##
    ##########################################
    
    if (isset($zv_orders_id) && (int)$zv_orders_id > 0 && isset($order_summary) && is_array($order_summary)) {
    
      if (!isset($_SESSION['affiliate_order_id']) || $_SESSION['affiliate_order_id'] != $zv_orders_id ) {
    
          $_SESSION['affiliate_order_id'] = $zv_orders_id;
    
         $commissionable_order_formatted = number_format($order_summary['commissionable_order'], 2, '.', '');
    
         echo '<script language="javascript" type="text/javascript" src="https://www.medsafeglobal.com/jamaffiliates/sale.php?amount=' . $commissionable_order_formatted . '&trans_id=' . $order_summary['order_number'] . '"></script>';
    
        }
    
    }
    
    #######################################
    ## END JAM INTEGRATION WITH ZEN CART ##
    #######################################
    
    } // end if for determining if this was the checkout_success page.?>
    ..then...nada, zip, zilch after a test order was placed!



    Could it be that because the cart is on a second level heirarchy (like domain.com/cart) that it is the reason why I'm having issues? Hmmmm

    Thanks again for your help!

    Michelle

 

 
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