Results 1 to 10 of 2161

Hybrid View

  1. #1
    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

  2. #2
    Join Date
    Mar 2007
    Location
    Taiwan
    Posts
    241
    Plugin Contributions
    0

    Default Add to cart goal

    Does anyone know how to set an "add to cart" goal in Google analytics? I've tried a regular expression

    /index.php?main_page=product_info&cPath=.*&products_id=.*

    but this doesn't work.

    My intention is to see how many people add to their cart VS actual sales.

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

    Default Re: Add to cart goal

    Hi paul3648,

    You can use the same funnel as I am using:

    1. /index.php?main_page=product_info <<<--- Customer views product details
    2. /index.php?main_page=shopping_cart <<<--- Customer adds product to cart
    3. /index.php?main_page=checkout_shipping
    4. /index.php?main_page=checkout_payment
    5. /index.php?main_page=checkout_confirmation
    6. /index.php?main_page=checkout_success <<<--- Goal URL

    Although as you can see a couple posts up, I had to use the full URL for these to work for me, such as:

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

    (of course you would change to your domain, etc.)

  4. #4
    Join Date
    Mar 2007
    Location
    Taiwan
    Posts
    241
    Plugin Contributions
    0

    Default Re: Add to cart goal

    Quote Originally Posted by iscatech View Post
    Hi paul3648,

    You can use the same funnel as I am using:

    1. /index.php?main_page=product_info <<<--- Customer views product details
    2. /index.php?main_page=shopping_cart <<<--- Customer adds product to cart
    3. /index.php?main_page=checkout_shipping
    4. /index.php?main_page=checkout_payment
    5. /index.php?main_page=checkout_confirmation
    6. /index.php?main_page=checkout_success <<<--- Goal URL
    Thanks iscatech,

    I have a functional checkout_success goal, but I'm interested to see how that compares to a separate goal where people click "Add to Cart" and then leave the site.

    I will try your first two steps, making product_info an essential step and shopping_cart the goal, but this won't record the "add to cart" clicks that are immediately abandoned. But perhaps that's nitpicking...

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

    Default Re: Add to cart goal

    I have my site set to display the shopping cart whenever a product is added. So as far as goal tracking is concerned, it would show hits on #1 and #2 of my goal path. (This option is under Admin > Config > My Store > Display cart after adding product.

    I can see how many customers abandon at each stage of the process using the Funnel Visualization link in Google Analytics, starting from the product info page.

    To see "add to cart" vs. "sales" I think you would use a similar path to mine but start with the cart instead of product info.

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

    Default Re: Simple Google Analytics - Support

    Ok new question:

    In my Google Analytics, in the top right corner I see me tracking number, UA-#######. When I got to check the tracking status I see UA-#######-3. I have also seen in other threads people using a "-1" at the end. What is the difference? Which number do I enter in the GA Config?

    I have been using just the number, but GA is not recording ecommerce sales. Could this be why?

  7. #7
    Join Date
    Mar 2007
    Location
    Taiwan
    Posts
    241
    Plugin Contributions
    0

    Default Re: Simple Google Analytics - Support

    Quote Originally Posted by iscatech View Post
    In my Google Analytics, in the top right corner I see me tracking number, UA-#######. When I got to check the tracking status I see UA-#######-3. I have also seen in other threads people using a "-1" at the end. What is the difference? Which number do I enter in the GA Config?

    I have been using just the number, but GA is not recording ecommerce sales. Could this be why?
    If you have Google analytics on more than one site, the number at the end of your UA code differentiates the sites. If you just have one site, the number should end with -1.

  8. #8
    Join Date
    Jun 2009
    Posts
    11
    Plugin Contributions
    0

    Default Re: Simple Google Analytics - Support

    Is it possible for the mod to place the template coding twice in each page if I installed it, deleted all files, uninstalled sql, and re-installed it?

    My site and admin are running extremely slow, i've moved the google code to the bottom now, I don't know what is going on, it's quite frustrating.

    http://www.fantasyblacksmith.com

    link to my site above. -Doug

  9. #9
    Join Date
    May 2009
    Posts
    222
    Plugin Contributions
    1

    Default Re: Simple Google Analytics - Support

    Hi
    Thanks for the great mod

    I installed it and entered my account id under configuration.

    I go down to Activate Conversion Tracking... yes i use adwords... what is the Google Conversion Tracking ID? Where do i get that from, I cant find that in my analytics account OR in my adwords account.

    Also i disregarded this:

    Google told me to post this into the page: (i didnt is that right?

    <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-10268705-1");
    pageTracker._trackPageview();
    } catch(err) {}</script>

 

 

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