Results 1 to 10 of 2161

Hybrid View

  1. #1
    Join Date
    Jan 2008
    Posts
    16
    Plugin Contributions
    0

    Default Re: Simple Google Analytics - Support

    I installed JROX at the some Time I upgraded from 1.1 to 1.2, so maybe that is where my problem is too.

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

    Default Re: Simple Google Analytics - Support

    Quote Originally Posted by gchalk View Post
    I installed JROX at the some Time I upgraded from 1.1 to 1.2, so maybe that is where my problem is too.
    I have seen in a number of instances where the installation of JAM (creating a new "footer" file for the checkout success page) causes problems with the code that is inserted during Google Analytics install which goes on the "tpl_main_page.php" page.

    This might be something to look into with the JROX code as well.

    To resolve this I have moved users JAM code to the tpl_main_page.php file and added an if then statement as such:

    <?php
    if ($_GET['main_page']=="checkout_success") { // If this is the checkout page, then insert the affiliate tracking code.
    ##########################################
    ## START JAM INTEGRATION WITH ZEN CART ##
    ## ZC Integration code by DrByte 8/2006 ##
    ##########################################
    if ((int)$orders_id > 0) {
    $JAM = $db->Execute("select class, value from " . TABLE_ORDERS_TOTAL . " where orders_id = '".(int)$orders_id."' AND class in ('ot_coupon', 'ot_subtotal', 'ot_group_pricing')");
    while (!$JAM->EOF) {
    switch ($JAM->fields['class']) {
    case 'ot_subtotal':
    $order_subtotal = $JAM->fields['value'];
    break;
    case 'ot_coupon':
    $coupon_amount = $JAM->fields['value'];
    break;
    case 'ot_group_pricing':
    $group_pricing_amount = $JAM->fields['value'];
    break;
    }
    $JAM->MoveNext();
    }
    $commissionable_order = ($order_subtotal - $coupon_amount - $group_pricing_amount);
    $commissionable_order = number_format($commissionable_order,2,'.','');
    echo "<script language=\"JavaScript\" type=\"text/javascript\" src=\"http://www.someurlhere.com/affiliates/sale.php?amount=$commissionable_order&trans_id=$orders_id\"></script></td></tr>

    </table>";
    }

    #######################################
    ## END JAM INTEGRATION WITH ZEN CART ##
    #######################################
    } // End if to determine if this is the checkout page
    ?>
    Eric
    20 Ways to Increase Sales Using Zen Cart
    Zen Cart contribs: Simple Google Analytics, Export Shipping Information

  3. #3
    Join Date
    Oct 2005
    Posts
    287
    Plugin Contributions
    0

    red flag Re: Simple Google Analytics - Support

    Quote Originally Posted by econcepts View Post
    I have seen in a number of instances where the installation of JAM (creating a new "footer" file for the checkout success page) causes problems with the code that is inserted during Google Analytics install which goes on the "tpl_main_page.php" page.

    This might be something to look into with the JROX code as well.

    To resolve this I have moved users JAM code to the tpl_main_page.php file and added an if then statement as such:


    --------------
    Can you please be clear on this, I am facing the same problem, no conversions showing after JROX is installed , do we remove the includes/templates/xxx/checkout_success folder and replace it with the above code, also the above codes seems incorrect because it only has the closing the tag </table> , we have the foll JROX code,

    <?php
    } // flag_disable_footer
    ##########################################
    ## 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="http://www.yoururl.com/affiliates/sale.php?amount=' . $commissionable_order_formatted . '&trans_id=' . $order_summary['order_number'] . '"></script>';

    }

    }

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

    ?>

    Please post a complete set of codes to be replaced.

  4. #4
    Join Date
    Jun 2008
    Posts
    1
    Plugin Contributions
    0

    Default Re: Simple Google Analytics - Support

    Hi I need some assistance. When Installing the Google analytics i do not have a
    tpl_main_page.php file. instead i have two files tpl_header.php and html_header.php. where do i enter the code:
    <?php
    require($template->get_template_dir('.php',DIR_WS_TEMPLATE, $current_page_base,'google_analytics') . '/google_analytics.php');
    ?>

    thanks

  5. #5
    Join Date
    May 2006
    Location
    Louisiana
    Posts
    263
    Plugin Contributions
    0

    Default Re: Simple Google Analytics - Support

    I have a problem with Google Analytics, I upgraded and I got this message.

    1062 Duplicate entry 'GOOGLE_URCHINTRACKING_ACTIVE' for key 2
    in:
    [INSERT INTO zen_configuration (configuration_id, configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, last_modified, date_added, use_function, set_function) VALUES ('', 'Use Older "urchin.js" Tracking Code', 'GOOGLE_URCHINTRACKING_ACTIVE', 'No', 'This enables you to select which type of tracking code to use (either the older "urchin.js" version or the newer "ga.js" version. By default the system now uses the newer "ga.js" code.

    I then uninstalled it, and then installed it again over writing all the old files.

    but now there are not configure files in the admin. This is all that shows in the admin.

    Google Analytics Configuration

    Title Value Action





    E-Commerce Engine Copyright © 2003-2008 Zen Cart™
    Zen Cart v1.3.7/v1.3.7

    bestvarietyshop.com

    can someone tell me what went wrong.

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

    Default Re: Simple Google Analytics - Support

    Quote Originally Posted by weezee View Post
    I have a problem with Google Analytics, I upgraded and I got this message.

    1062 Duplicate entry 'GOOGLE_URCHINTRACKING_ACTIVE' for key 2
    in:
    [INSERT INTO zen_configuration (configuration_id, configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, last_modified, date_added, use_function, set_function) VALUES ('', 'Use Older "urchin.js" Tracking Code', 'GOOGLE_URCHINTRACKING_ACTIVE', 'No', 'This enables you to select which type of tracking code to use (either the older "urchin.js" version or the newer "ga.js" version. By default the system now uses the newer "ga.js" code.

    I then uninstalled it, and then installed it again over writing all the old files.

    but now there are not configure files in the admin. This is all that shows in the admin.

    Google Analytics Configuration

    Title Value Action





    E-Commerce Engine Copyright © 2003-2008 Zen Cart™
    Zen Cart v1.3.7/v1.3.7

    bestvarietyshop.com

    can someone tell me what went wrong.
    That error means that during your uninstall, you either did not uninstall it correctly, or something went wrong during the uninstall.

    If you are upgrading (which you will not be now .. it sounds like you'll need to install from scratch since you removed some files) you need to use the upgrade sql patch (not the new install patch).

    Using the wrong patch might cause that error.

    I would suggest to try to uninstall again, then reinstall.

    Post the results here and we'll see where we get.

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

  7. #7

    Default Re: Simple Google Analytics - Support

    Quick question regarding urchin. Is ga.js working correctly yet? I have read back and the last mention I saw of the issue was a couple months old. Has there been any information released about whether it is working properly yet?

    Thank you

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

    Default Re: Simple Google Analytics - Support

    Quote Originally Posted by tobiasrieper48 View Post
    Hi I need some assistance. When Installing the Google analytics i do not have a
    tpl_main_page.php file. instead i have two files tpl_header.php and html_header.php. where do i enter the code:
    <?php
    require($template->get_template_dir('.php',DIR_WS_TEMPLATE, $current_page_base,'google_analytics') . '/google_analytics.php');
    ?>

    thanks
    You should have this file. It is a core file. If you do not see it in your custom folder, then you can copy the version found in the "/includes/templates/template_default/common/ directory and paste it into your custom directory to alter (as such /includes/templates/your custom template/common
    Eric
    20 Ways to Increase Sales Using Zen Cart
    Zen Cart contribs: Simple Google Analytics, Export Shipping Information

  9. #9
    Join Date
    Feb 2007
    Posts
    37
    Plugin Contributions
    0

    Default Re: Simple Google Analytics - Support

    Quote Originally Posted by econcepts View Post
    I have seen in a number of instances where the installation of JAM (creating a new "footer" file for the checkout success page) causes problems with the code that is inserted during Google Analytics install which goes on the "tpl_main_page.php" page.

    This might be something to look into with the JROX code as well.

    To resolve this I have moved users JAM code to the tpl_main_page.php file and added an if then statement as such:
    Hi econcepts,

    I would be really grateful if you could explain what this means. Since I installed JROX, my site is also no longer showing any e-commerce data, though the visits and funnel visualisation show the correct data being fed through.

    What did you mean by "moving users JAM code"? Is it possible to solve this just by moving the google_analytics.php to the custom checkout_success folder?

    Many thanks,

    Edwin
    my greener home. Save money and save the environment.

 

 

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