Results 1 to 10 of 2161

Hybrid View

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

    Default Re: Simple Google Analytics - Support

    Good point here. This is actually how Google sees it and would be 'correct' to some degree (nothing with the module itself ... more with how Google reads the info).

    Here is what I mean:

    If you look at it from Google's perspective, there were only "2" unique products (by product id / model) ordered yet there were "3" variations of products in all.

    So from Google's end, it reads it as two unique products (which is correct) one of which has '2 variations' (but in fact is the same product as the first.)

    Does that make sense?
    Eric
    20 Ways to Increase Sales Using Zen Cart
    Zen Cart contribs: Simple Google Analytics, Export Shipping Information

  2. #2
    Join Date
    Feb 2004
    Location
    Georgia, USA
    Posts
    1,948
    Plugin Contributions
    0

    Default Re: Simple Google Analytics - Support

    Quote Originally Posted by econcepts View Post
    Good point here. This is actually how Google sees it and would be 'correct' to some degree (nothing with the module itself ... more with how Google reads the info).

    Here is what I mean:

    If you look at it from Google's perspective, there were only "2" unique products (by product id / model) ordered yet there were "3" variations of products in all.

    So from Google's end, it reads it as two unique products (which is correct) one of which has '2 variations' (but in fact is the same product as the first.)

    Does that make sense?
    What you're saying make sense but it's a faulty logic on Google's part. Obviously, if the product ID is the same Google analytic should be smart enough to show the variation.

    So in my example, even if google is only reporting one product A, if they are not going to report the variation they should at least count all for that id. So if a customer buys 2 small t-shirt and 2 medium shirt, if Google is only going to report it as a t-shirt the count should be 4 NOT two units.

    Oh well!

  3. #3
    Join Date
    Sep 2008
    Location
    DownUnder, overlooking South Pole.
    Posts
    984
    Plugin Contributions
    6

    Default Re: Simple Google Analytics - Support

    Apologies if this has been answered before in this long thread, however...

    I created a new page called "main", which has its own "tpl_main_page.php" in \includes\templates\mytemplate\main\ because its layout is different from all other pages.

    (Background: This new page was originally the homepage of my old site, but upon migrating the site to zen cart, "index.php" has become the homepage. Wishing to retain the content and layout of the old homepage, I had to create a new page called "main".)

    1. Just before the </body> at the bottom of the "main" page, I inserted the following code as instructed:

    Code:
    <!-- Google Analytics 1-2-3 start-->
    <?php
    if (GOOGLE_ANALYTICS_TRACKING_TYPE == "Asynchronous") {
    // Do nothing
    } else {
    require($template->get_template_dir('.php',DIR_WS_TEMPLATE, $current_page_base,'google_analytics') . '/google_analytics.php');
    }
    ?>
    <!-- Google Analytics 1-2-3 end-->
    and then removed the "/" before "google_analytics.php".

    2. I then placed a copy of "google_analytics.php"
    from
    includes\templates\mytemplate\google_analytics\
    into
    \includes\templates\mytemplate\main\

    However, while the above throws no errors and because my zen cart is still under development on localhost, I have no idea whether the above actually works on a live site or indeed is the correct way to invoke google analytics for this one page.

    Comments/Criticisms most appreciated.

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

    Default Re: Simple Google Analytics - Support

    Quote Originally Posted by dw08gm View Post
    Apologies if this has been answered before in this long thread, however...

    I created a new page called "main", which has its own "tpl_main_page.php" in \includes\templates\mytemplate\main\ because its layout is different from all other pages.

    (Background: This new page was originally the homepage of my old site, but upon migrating the site to zen cart, "index.php" has become the homepage. Wishing to retain the content and layout of the old homepage, I had to create a new page called "main".)

    1. Just before the </body> at the bottom of the "main" page, I inserted the following code as instructed:

    Code:
    <!-- Google Analytics 1-2-3 start-->
    <?php
    if (GOOGLE_ANALYTICS_TRACKING_TYPE == "Asynchronous") {
    // Do nothing
    } else {
    require($template->get_template_dir('.php',DIR_WS_TEMPLATE, $current_page_base,'google_analytics') . '/google_analytics.php');
    }
    ?>
    <!-- Google Analytics 1-2-3 end-->
    and then removed the "/" before "google_analytics.php".

    2. I then placed a copy of "google_analytics.php"
    from
    includes\templates\mytemplate\google_analytics\
    into
    \includes\templates\mytemplate\main\

    However, while the above throws no errors and because my zen cart is still under development on localhost, I have no idea whether the above actually works on a live site or indeed is the correct way to invoke google analytics for this one page.

    Comments/Criticisms most appreciated.
    This is one way to do it. The way to see if it will work is to look at the page on your local server and simply "view source" (from the browser). If you see the Google Analytics code on the page you're all set.
    Eric
    20 Ways to Increase Sales Using Zen Cart
    Zen Cart contribs: Simple Google Analytics, Export Shipping Information

  5. #5
    Join Date
    Sep 2008
    Location
    DownUnder, overlooking South Pole.
    Posts
    984
    Plugin Contributions
    6

    Default Re: Simple Google Analytics - Support

    Quote Originally Posted by econcepts View Post
    This is one way to do it. The way to see if it will work is to look at the page on your local server and simply "view source" (from the browser). If you see the Google Analytics code on the page you're all set.
    Hi econcepts. Thanks for your prompt reply.

    Yes, the code does appear in view source.

    On further thought, however, I am wondering how else to access the original google_analytics.php in includes\templates\mytemplate\google_analytics\.

    It seems I only need to change the "$current_page_base" in the following code at the bottom of my new tpl_main_page.php to reference /mytemplate/, but which is currently rendering as "main" .

    Code:
    require($template->get_template_dir('.php',DIR_WS_TEMPLATE, $current_page_base,'google_analytics') . 'google_analytics.php');
    Any thoughts or solutions.

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

    Default Re: Simple Google Analytics - Support

    Quote Originally Posted by dw08gm View Post
    Hi econcepts. Thanks for your prompt reply.

    Yes, the code does appear in view source.

    On further thought, however, I am wondering how else to access the original google_analytics.php in includes\templates\mytemplate\google_analytics\.

    It seems I only need to change the "$current_page_base" in the following code at the bottom of my new tpl_main_page.php to reference /mytemplate/, but which is currently rendering as "main" .

    Code:
    require($template->get_template_dir('.php',DIR_WS_TEMPLATE, $current_page_base,'google_analytics') . 'google_analytics.php');
    Any thoughts or solutions.
    If the code is showing on you page when you view source then you should have to change anything. The tracking is installed correctly.
    Eric
    20 Ways to Increase Sales Using Zen Cart
    Zen Cart contribs: Simple Google Analytics, Export Shipping Information

  7. #7
    Join Date
    Jun 2005
    Location
    Portland, OR
    Posts
    189
    Plugin Contributions
    0

    Default Re: Simple Google Analytics - Support

    Searching through threads and trying to find an answer - hoping someone here can help. It seems that no matter if I use this module or I'm inserting analytics code manually, ALL orders placed through paypal or check/money order aren't being tracked by google. Only my credit card transactions.

    Is anyone else seeing this? I'm using the standard IPN paypal module. Thanks and apologies if this has been covered.

 

 

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