Page 29 of 68 FirstFirst ... 19272829303139 ... LastLast
Results 281 to 290 of 672
  1. #281
    Join Date
    Aug 2004
    Location
    Saint Petersburg, Russia
    Posts
    1,786
    Plugin Contributions
    13

    Default Re: Google Analytics Integration

    Not cube, cuda, to me all the same.

  2. #282
    Join Date
    Sep 2004
    Posts
    2,420
    Plugin Contributions
    2

    Default Re: Google Analytics Integration

    Quote Originally Posted by a_berezin View Post
    Not cube, cuda, to me all the same.
    Andrew-

    I observe your site is once again is no longer allowing downloads. Downloads available one week then unavailable the next?

    http://zen-cart.spb.ru/index.php?mai...=contributions

    I don't understand what Kelvyn stated that ticked you off but why this continual roller coaster ride?

    Damn Cuda's ethics. But why do you let the issue spoil everything? Please LET IT GO for once and for all!

    I do hope you upgrade your version of GA mod.

    Please don't let others rain on your parade. Life is too short.

    Woody

  3. #283
    Join Date
    Mar 2005
    Location
    Helsinki
    Posts
    570
    Plugin Contributions
    0

    Default Re: Google Analytics Integration

    <!-- Track -->
    <?php // If page is SSL then use Secure Code
    if($_SERVER['HTTPS']=='on'){
    ?>



    <!-- Google Analytics -->
    <script src="https://ssl.google-analytics.com/urchin.js" type="text/javascript">
    </script>
    <script type="text/javascript">
    _uacct = "UA-1904406-1";
    urchinTracker();
    </script>



    <?php // Else use Non-Secure Code
    } else {
    ?>


    <!-- Google Analytics -->
    <script src="http://www.google-analytics.com/urchin.js" type="text/javascript">
    </script>
    <script type="text/javascript">
    _uacct = "UA-1904406-1";
    urchinTracker();
    </script>
    <!-- /Google Analytics -->
    <?php } ?>


    <!-- /Track -->



    </body>


    Could someone explain why that doesn't work.. I am just looking for the easiest way to track visit counts. nothing else. Any other ideas without multiple file changes and sql patches?

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

    Default Re: Google Analytics Integration

    Woody!
    I plan all to transfer to download area and finished on that. Wait a some time. zen-cart.spb.ru is a DEMO site for russian zen-cart, instead of storehouse of modues. At it other tasks - propagation zen-cart.

    I was bothered by those boyes. I made modules and supported them only from desire to help. I on it have not earned cent. And I do not understand, why the people which nothing have made for development zen show to me any claims. To me not interestingly such dialogue. I can perfectly do without these problems. And to engage in the businesses, instead of to waste time for stupid discussions.

    Let's finish on it.
    Good luck!

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

    Default Re: Google Analytics Integration

    Quote Originally Posted by poosk View Post
    Could someone explain why that doesn't work.. I am just looking for the easiest way to track visit counts. nothing else. Any other ideas without multiple file changes and sql patches?

    Did you place the code on the proper page? Where did you put it?
    Eric
    20 Ways to Increase Sales Using Zen Cart
    Zen Cart contribs: Simple Google Analytics, Export Shipping Information

  6. #286
    kelvyn Guest

    Default Re: Google Analytics Integration

    Quote Originally Posted by a_berezin View Post
    I was bothered by those boyes. I made modules and supported them only from desire to help.
    OK, I understand what has happened now. I was missing for a few weeks and didn't see the argument.

    I think there have been misunderstandings all round. I just hope someday we can get a common module system, standard and repository like, um...every other project has!

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

    Default Re: Google Analytics Integration

    Quote Originally Posted by econcepts View Post

    Keep in mind that the "xxxxxxx" shown in all areas below represents where your own Google ID would go (generated from within Google).
    In some places, you have UA-xxxxxx-x listed, and in a couple others xxxxxxxxxx. This is a bit confusing. Do I put my UA code in the "ten x" space as well? With the UA and the dashes, that's 11 digits, so I wasn't sure.

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

    Default Re: Google Analytics Integration

    Quote Originally Posted by archer904 View Post
    In some places, you have UA-xxxxxx-x listed, and in a couple others xxxxxxxxxx. This is a bit confusing. Do I put my UA code in the "ten x" space as well? With the UA and the dashes, that's 11 digits, so I wasn't sure.

    No, both codes are for two SEPARATE tracking items.

    In my post I listed code to setup E-commerce tracking, Standard Google Analytics tracking, and Conversion Tracking. All offered tracking systems within the "Google Analytics" framework.

    Conversion Tracking codes do not have a "UA" or a "dash (-)" in them. Standard Google Analytics tracking DOES have the "UA" and the dash.

    Again, they are two different tracking codes entirely, and are used for two totally different things. One tracks conversion data from Paid Search campaigns while the other tracks "overall statistics".
    Eric
    20 Ways to Increase Sales Using Zen Cart
    Zen Cart contribs: Simple Google Analytics, Export Shipping Information

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

    Default Re: Google Analytics Integration

    Quote Originally Posted by econcepts View Post
    No, both codes are for two SEPARATE tracking items.

    In my post I listed code to setup E-commerce tracking, Standard Google Analytics tracking, and Conversion Tracking. All offered tracking systems within the "Google Analytics" framework.

    Conversion Tracking codes do not have a "UA" or a "dash (-)" in them. Standard Google Analytics tracking DOES have the "UA" and the dash.

    Again, they are two different tracking codes entirely, and are used for two totally different things. One tracks conversion data from Paid Search campaigns while the other tracks "overall statistics".
    Okay, so if you're not doing Conversion Tracking, the code should look like this, right?

    <!-- Tracking -->
    <?php // If page is SSL then use Secure Code
    if($_SERVER['HTTPS']=='on'){
    ?>



    <!-- Google Analytics -->
    <script src="https://ssl.google-analytics.com/urchin.js" type="text/javascript">
    </script>
    <script type="text/javascript">
    _uacct = "UA-xxxxxx-x";
    urchinTracker();
    </script>
    <!-- /Google Analytics -->
    <?php
    if ($_GET['main_page']=="checkout_success") { // if transaction is a successful purchase then record the order details
    ?>
    <!-- Google Analytics E-Commerce Tracking (must go below standard Analytics code)-->
    <body onLoad="javascript:__utmSetTrans()">
    <form style="display:none;" name="utmform">
    <textarea id="utmtrans">UTM:T|<?php echo $zv_orders_id ?>||<?php echo $zv_order_total_cd ?>|<?php echo $zv_order_tax ?>|0.00|<?php echo $zv_order_city ?>|<?php echo $zv_order_state ?>|<?php echo $zv_order_country ?>
    <?php // Loop through products purchased to track in Google (these come from the "cart_orders_products TABLE)
    //sku = "products_model"; productname = "products_name"; category = ""; price = "final_price"; quantity = "products_quantity"
    $products_displayed_google = array();
    for ($i=0, $n=sizeof($products_array_google); $i<$n; $i++) {
    if (!in_array($products_array_google[$i]['id'], $products_displayed_google)) {
    echo 'UTM:I|' . $zv_orders_id . '|' . $products_array_google[$i]['model'] . '|' . $products_array_google[$i]['text'] . '||' . $products_array_google[$i]['price'] . '|' . $products_array_google[$i]['quantity'];
    $products_displayed_google[] = $products_array_google[$i]['id'];
    }
    }
    ?>
    </textarea>
    </form>
    <!-- /Google Analytics E-Commerce Tracking -->

    <!-- Google Analytics -->
    <script src="http://www.google-analytics.com/urchin.js" type="text/javascript">
    </script>
    <script type="text/javascript">
    _uacct = "UA-xxxxxx-x";
    urchinTracker();
    </script>
    <!-- /Google Analytics -->
    <?php } ?>


    <!-- / Tracking -->

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

    Default Re: Google Analytics Integration

    archer,

    Actually, you have deleted some parts that determine whether or not to use the secure code or the non-secure code.

    Here is what it should look like if you are NOT using Conversion tracking.

    PHP Code:
    <!-- Tracking -->
    <?php // If page is SSL then use Secure Code
    if($_SERVER['HTTPS']=='on'){
    ?>



    <!-- Google Analytics -->
    <script src="https://ssl.google-analytics.com/urchin.js" type="text/javascript">
    </script>
    <script type="text/javascript">
    _uacct = "UA-xxxxxx-x1";
    urchinTracker();
    </script>
         <!-- /Google Analytics -->
        <?php 
        
    if ($_GET['main_page']=="checkout_success") {
        
    ?>
             <!-- Google Analytics E-Commerce Tracking (must go below standard Analytics code)-->
            <body onLoad="javascript:__utmSetTrans()"> 
            <form style="display:none;" name="utmform">
            <textarea id="utmtrans">UTM:T|<?php echo $zv_orders_id ?>||<?php echo $zv_order_total_cd ?>|<?php echo $zv_order_tax ?>|0.00|<?php echo $zv_order_city ?>|<?php echo $zv_order_state ?>|<?php echo $zv_order_country ?>
            <?php // Loop through products purchased to track in Google (these come from the "cart_orders_products TABLE)
                  //sku = "products_model";  productname = "products_name"; category = ""; price = "final_price"; quantity = "products_quantity"
                  
    $products_displayed_google = array();
                  for (
    $i=0$n=sizeof($products_array_google); $i<$n$i++) {
                    if (!
    in_array($products_array_google[$i]['id'], $products_displayed_google)) {
                      echo 
    'UTM:I|' $zv_orders_id '|' $products_array_google[$i]['model'] . '|' $products_array_google[$i]['text'] . '||' $products_array_google[$i]['price'] . '|' $products_array_google[$i]['quantity'];
                      
    $products_displayed_google[] = $products_array_google[$i]['id'];
                    }
                  }
                
    ?>
            </textarea>
            </form> 
             <!-- /Google Analytics E-Commerce Tracking -->

         <?php //End if main page is "checkout_success"?>
      
    <?php // Else use Non-Secure Code
    } else {
    ?>


     <!-- Google Analytics -->
     <script src="http://www.google-analytics.com/urchin.js" type="text/javascript">
    </script>
    <script type="text/javascript">
    _uacct = "UA-xxxxxx-x";
    urchinTracker();
    </script>
     <!-- /Google Analytics -->
     <?php ?>

     


    <!-- / Tracking -->
    Don't forget to make the remaining alterations that I indicated in the previous post (the origanl one with the code) to allow the cart to pick up the "e-commerce" variables.
    Eric
    20 Ways to Increase Sales Using Zen Cart
    Zen Cart contribs: Simple Google Analytics, Export Shipping Information

 

 
Page 29 of 68 FirstFirst ... 19272829303139 ... 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