Page 18 of 68 FirstFirst ... 8161718192028 ... LastLast
Results 171 to 180 of 672
  1. #171
    Join Date
    Oct 2006
    Location
    Italy
    Posts
    634
    Plugin Contributions
    0

    Default Re: Google Analytics Integration

    The record by Google analytics is more slow, but it record all (at this time)
    I've installed only variant_include mod by Andrew, and all works!
    The little bug is only the amount of transaction, as I say in the last post.

  2. #172
    Join Date
    May 2006
    Location
    Texas
    Posts
    565
    Plugin Contributions
    4

    Default Re: Google Analytics Integration

    on line 45.. try changing

    Code:
    number_format($products->fields['final_price'], 2, ',', '')
    to

    Code:
    number_format($products->fields['final_price'], 2, '.', ',')
    I haven't tested this.. however I'm in the process of doing so (just installed latest version w/ this change).. so ill report back once i get some sales :)

  3. #173
    Join Date
    Oct 2006
    Location
    Italy
    Posts
    634
    Plugin Contributions
    0

    Default Re: Google Analytics Integration

    I'm an Italian seller. Our prices is in Euro; ex 1.320,45
    I can't see the decimal amount.
    I'm trying this change, and I wait next sales :-)

  4. #174
    Join Date
    Aug 2004
    Location
    Saint Petersburg, Russia
    Posts
    1,786
    Plugin Contributions
    13

    Default Re: Google Analytics Integration

    Quote Originally Posted by getyourgameshere.com View Post
    on line 45.. try changing

    Code:
    number_format($products->fields['final_price'], 2, ',', '')
    to

    Code:
    number_format($products->fields['final_price'], 2, '.', ',')
    Yes, yes, yes!!!

  5. #175
    Join Date
    Dec 2006
    Posts
    7
    Plugin Contributions
    0

    Default Re: Google Analytics Integration

    Hi guys,

    This thread is now famous. I found it through Google.

    I'm new to this discussion, and I know that mods have been presented, bugs have been reported, bugs have been fixed, things have been updated, etc.

    What I'm here to ask, for all the newbs who have just surfed in and see an 18 page thread:

    What is the current disposition? Just to drop the Analytics script into a particular file, and tell google the URL for our checkout page? Or should we use a particular, updated module, or what? Thanks.
    Last edited by archer904; 13 Dec 2006 at 02:54 PM. Reason: Changing notification prefs

  6. #176
    Join Date
    Oct 2006
    Location
    Italy
    Posts
    634
    Plugin Contributions
    0

    Default Re: Google Analytics Integration

    Download the latest mod by Andrew http://zen-cart.spb.ru/index.php?mai...=contributions
    and then use only variant_include.
    So my google analytics works very well!

  7. #177
    Join Date
    Dec 2006
    Posts
    7
    Plugin Contributions
    0

    Default Re: Google Analytics Integration

    Quote Originally Posted by 100asa View Post
    Download the latest mod by Andrew http://zen-cart.spb.ru/index.php?mai...=contributions
    and then use only variant_include.
    So my google analytics works very well!
    In the zip file I have located the variant_include folder. Inside it is the Includes folder. In that is the Templates folder. Inside that is the YOUR_TEMPLATE folder. Inside that is the Common folder, and in that is the file tpl_footer_googleanalytics.php.

    So do I put the variant_include folder and everything inside it in a particular directory? Or just tpl_footer_googleanalytics.php? Or do I need to do something else?

  8. #178
    Join Date
    Jul 2006
    Posts
    129
    Plugin Contributions
    1

    Default Re: Google Analytics Integration

    Ok I have been saying I was going to release a simplified version of this moduke for some time now and I finally got around to doing it. My version does not include any extra JavaScript works for secure and nonsecure pages and allows for full ecommerce tracking. The tracking code and the checkout success code is included at the bottom of your template and visable.

    There are only 2 files to upload one of which is only one line and an sql patch. It is based on a_berezin's code here but reduced and reworked.

    The support thread is at:
    http://www.zen-cart.com/forum/showthread.php?t=53701

    Download is currently available at:
    http://www.zen-cart.com/index.php?ma...roducts_id=412

    Hope this helps some of you out.
    ---------------------------------
    Barracuda Productions pure instincts

  9. #179
    Join Date
    Dec 2006
    Posts
    7
    Plugin Contributions
    0

    Default Re: Google Analytics Integration

    Okay,

    I'm following the instructions in the README file, which say:

    3. At the bottom of templates/[your_template]/common/tpl_main_page.php
    Add this just before the </body> tag:

    <?php
    require($template->get_template_dir('.php',DIR_WS_TEMPLATE, $current_page_base,'google_analytics') . '/google_analytics.php');
    ?>
    However, my tpl_main_page.php file does not contain a </body> tag. This is the full text of my tpl_main_page.php file:


    <?php

    /**

    * Common Template - tpl_main_page.php

    *

    * Governs the overall layout of an entire page<br />

    * Normally consisting of a header, left side column. center column. right side column and footer<br />

    * For customizing, this file can be copied to /templates/your_template_dir/pagename<br />

    * example: to override the privacy page<br />

    * - make a directory /templates/my_template/privacy<br />

    * - copy /templates/templates_defaults/common/tpl_main_page.php to /templates/my_template/privacy/tpl_main_page.php<br />

    * <br />

    * to override the global settings and turn off columns un-comment the lines below for the correct column to turn off<br />

    * to turn off the header and/or footer uncomment the lines below<br />

    * Note: header can be disabled in the tpl_header.php<br />

    * Note: footer can be disabled in the tpl_footer.php<br />

    * <br />

    * $flag_disable_header = true;<br />

    * $flag_disable_left = true;<br />

    * $flag_disable_right = true;<br />

    * $flag_disable_footer = true;<br />

    * <br />

    * // example to not display right column on main page when Always Show Categories is OFF<br />

    * <br />

    * if ($current_page_base == 'index' and $cPath == '') {<br />

    * $flag_disable_right = true;<br />

    * }<br />

    * <br />

    * example to not display right column on main page when Always Show Categories is ON and set to categories_id 3<br />

    * <br />

    * if ($current_page_base == 'index' and $cPath == '' or $cPath == '3') {<br />

    * $flag_disable_right = true;<br />

    * }<br />

    *

    * @package templateSystem

    * @copyright Copyright 2003-2006 Zen Cart Development Team

    * @copyright Portions Copyright 2003 osCommerce

    * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0

    * @version $Id: tpl_main_page.php 3856 2006-06-29 02:26:33Z drbyte $

    */



    // the following IF statement can be duplicated/modified as needed to set additional flags

    if (in_array($current_page_base,explode(",",'list_pages_to_skip_all_right_sideboxes _on_here,separated_by_commas,and_no_spaces')) ) {

    $flag_disable_right = true;

    }





    $header_template = 'tpl_header.php';

    $footer_template = 'tpl_footer.php';

    $left_column_file = 'column_left.php';

    $right_column_file = 'column_right.php';

    $body_id = str_replace('_', '', $_GET['main_page']);

    ?>

    <body id="<?php echo $body_id . 'Body'; ?>"<?php if($zv_onload !='') echo ' onload="'.$zv_onload.'"'; ?>>

    <?php

    if (SHOW_BANNERS_GROUP_SET1 != '' && $banner = zen_banner_exists('dynamic', SHOW_BANNERS_GROUP_SET1)) {

    if ($banner->RecordCount() > 0) {

    ?>

    <div id="bannerOne" class="banners"><?php echo zen_display_banner('static', $banner); ?></div>

    <?php

    }

    }

    ?>



    <div id="mainWrapper">

    <?php

    /**

    * prepares and displays header output

    *

    */

    require($template->get_template_dir('tpl_header.php',DIR_WS_TEMPLATE, $current_page_base,'common'). '/tpl_header.php');?>



    <table width="100%" border="0" cellspacing="0" cellpadding="0" id="contentMainWrapper">

    <tr>

    <?php

    if (COLUMN_LEFT_STATUS == 0 or (CUSTOMERS_APPROVAL == '1' and $_SESSION['customer_id'] == '')) {

    // global disable of column_left

    $flag_disable_left = true;

    }

    if (!isset($flag_disable_left) || !$flag_disable_left) {

    ?>



    <td id="navColumnOne" class="columnLeft" style="width: <?php echo COLUMN_WIDTH_LEFT; ?>">

    <?php

    /**

    * prepares and displays left column sideboxes

    *

    */

    ?>

    <div id="navColumnOneWrapper" style="width: <?php echo BOX_WIDTH_LEFT; ?>"><?php require(DIR_WS_MODULES . zen_get_module_directory('column_left.php')); ?></div></td>

    <?php

    }

    ?>

    <td valign="top">

    <!-- bof breadcrumb -->

    <?php if (DEFINE_BREADCRUMB_STATUS == '1') { ?>

    <div id="navBreadCrumb"><?php echo $breadcrumb->trail(BREAD_CRUMBS_SEPARATOR); ?></div>

    <?php } ?>

    <!-- eof breadcrumb -->



    <?php

    if (SHOW_BANNERS_GROUP_SET3 != '' && $banner = zen_banner_exists('dynamic', SHOW_BANNERS_GROUP_SET3)) {

    if ($banner->RecordCount() > 0) {

    ?>

    <div id="bannerThree" class="banners"><?php echo zen_display_banner('static', $banner); ?></div>

    <?php

    }

    }

    ?>



    <!-- bof upload alerts -->

    <?php if ($messageStack->size('upload') > 0) echo $messageStack->output('upload'); ?>

    <!-- eof upload alerts -->



    <?php

    /**

    * prepares and displays center column

    *

    */

    require($body_code); ?>



    <?php

    if (SHOW_BANNERS_GROUP_SET4 != '' && $banner = zen_banner_exists('dynamic', SHOW_BANNERS_GROUP_SET4)) {

    if ($banner->RecordCount() > 0) {

    ?>

    <div id="bannerFour" class="banners"><?php echo zen_display_banner('static', $banner); ?></div>

    <?php

    }

    }

    ?></td>



    <?php

    if (COLUMN_RIGHT_STATUS == 0 or (CUSTOMERS_APPROVAL == '1' and $_SESSION['customer_id'] == '')) {

    // global disable of column_right

    $flag_disable_right = true;

    }

    if (!isset($flag_disable_right) || !$flag_disable_right) {

    ?>

    <td id="navColumnTwo" class="columnRight" style="width: <?php echo COLUMN_WIDTH_RIGHT; ?>">

    <?php

    /**

    * prepares and displays right column sideboxes

    *

    */

    ?>

    <div id="navColumnTwoWrapper" style="width: <?php echo BOX_WIDTH_RIGHT; ?>"><?php require(DIR_WS_MODULES . zen_get_module_directory('column_right.php')); ?></div></td>

    <?php

    }

    ?>

    </tr>

    </table>



    <?php

    /**

    * prepares and displays footer output

    *

    */

    require($template->get_template_dir('tpl_footer.php',DIR_WS_TEMPLATE, $current_page_base,'common'). '/tpl_footer.php');?>

    </div>

    <!--bof- parse time display -->

    <?php

    if (DISPLAY_PAGE_PARSE_TIME == 'true') {

    ?>

    <div class="smallText center">Parse Time: <?php echo $parse_time; ?> - Number of Queries: <?php echo $db->queryCount(); ?> - Query Time: <?php echo $db->queryTime(); ?></div>

    <?php

    }

    ?>

    <!--eof- parse time display -->

    <!--bof- banner #6 display -->

    <?php

    if (SHOW_BANNERS_GROUP_SET6 != '' && $banner = zen_banner_exists('dynamic', SHOW_BANNERS_GROUP_SET6)) {

    if ($banner->RecordCount()
    So where do I stick the required code?

    Thanks for your help.

  10. #180
    Join Date
    May 2006
    Location
    Texas
    Posts
    565
    Plugin Contributions
    4

    Default Re: Google Analytics Integration

    i put mine at the bottom of tpl_footer.php .. it just needs to be at the lower end of the page somewhere

 

 
Page 18 of 68 FirstFirst ... 8161718192028 ... LastLast

Similar Threads

  1. Google Analytics: Site Search Integration
    By saitomedia in forum General Questions
    Replies: 1
    Last Post: 29 Jul 2010, 08:08 AM
  2. google analytics integration
    By amnon_d in forum General Questions
    Replies: 3
    Last Post: 14 Jul 2009, 12:04 PM

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