Page 1 of 2 12 LastLast
Results 1 to 10 of 12
  1. #1
    Join Date
    May 2009
    Posts
    413
    Plugin Contributions
    0

    help question How to setup google analytics?

    I want to setup google analytics for my site. I have already signed up for a GA account today.

    I'm not after zen cart admin integration, and I'm quite happy just logging into my GA account to retrieve traffic data. I would like all the usual GA data + all ecommerce data available (conversion rate, searches purchased products etc.) enabled. Do I have to install one of the zen cart addons to get GA to work or can I simply paste the GA generated code into my site?

    - If so, what are the required GA profile settings - heres a list of whats available to configure in google analytics>analytics settings>profile settings:

    Website URL:
    Default page [?] :
    Time zone [?] :
    Exclude URL Query Parameters:
    E-Commerce Website:
    Site Search [?] :
    Currency displayed as:

    Finally, where is the best place to paste the GA code??

    Thank you

  2. #2
    Join Date
    Mar 2009
    Posts
    221
    Plugin Contributions
    1

    Default Re: How to setup google analytics?

    All you need to do is add the Google tracking code to:
    /includes/template/custom_template/common/tpl_main_page.php

    Add the code to the bottom of the file, right above the closing </body> tag.


    or you can use the Google Analytics contribution.

  3. #3
    Join Date
    Mar 2010
    Location
    UK
    Posts
    445
    Plugin Contributions
    0

    Default Re: How to setup google analytics?

    I've simply pasted the relevant code into the footer template, but I'd like to ask what it is you get extra when you use a ZC add-on for that?

    I've seen references to options appearing in the Admin section. What do they do? Or, is it just the case that this sinply enables and disables the code from appearing, and/or sets it to only appear on selected parts of the sites? Or what?

  4. #4
    Join Date
    May 2009
    Posts
    413
    Plugin Contributions
    0

    Default Re: How to setup google analytics?

    g1smd,

    I don't suppose you could tell me where in tpl_footer you pasted the code could you?

    Thanks

  5. #5
    Join Date
    Mar 2010
    Location
    UK
    Posts
    445
    Plugin Contributions
    0

    Default Re: How to setup google analytics?

    After:
    Code:
    <!--eof- site copyright display -->
    and before:
    Code:
    <?php
    } // flag_disable_footer
    ?>

  6. #6
    Join Date
    May 2009
    Posts
    413
    Plugin Contributions
    0

    Default Re: How to setup google analytics?

    Quote Originally Posted by g1smd View Post
    After:
    Code:
    <!--eof- site copyright display -->
    and before:
    Code:
    <?php
    } // flag_disable_footer
    ?>
    Thanks

  7. #7
    Join Date
    Nov 2007
    Location
    Woodbine, Georgia, United States
    Posts
    4,246
    Plugin Contributions
    58

    Default Re: How to setup google analytics?

    Quote Originally Posted by Crunch View Post
    All you need to do is add the Google tracking code to:
    /includes/template/custom_template/common/tpl_main_page.php

    Add the code to the bottom of the file, right above the closing </body> tag.


    or you can use the Google Analytics contribution.
    This is actually correct, the tpl_footer is not always the "last" entry before the closing body tag. While others have reported that the GA code will work anywhere, in diagnosing a conversion discrepancy issue with the Adwords support staff... They clearly stated that the GA must be the last entry before the closing body tag.

    The contribution adds automatic use of the page naming option as well as Adwords conversion tracking support. All maintained from the Zen administration area.

    ~Melanie
    PRO-Webs, Inc. since 2003 :: Zen Cart Hosting :: Zen Cart SEO – 12 Steps to Success
    **I answer questions in the forum, private messages are not conducive to a helpful community.

  8. #8
    Join Date
    May 2009
    Posts
    413
    Plugin Contributions
    0

    Default Re: How to setup google analytics?

    Quote Originally Posted by mprough View Post
    The contribution adds automatic use of the page naming option as well as Adwords conversion tracking support. All maintained from the Zen administration area.

    ~Melanie
    Does that mean I don't get conversion tracking with the standard 'just copy and paste the code' method then??

    Also what is 'automatic use of the page naming option' you mentioned?

    Thanks.

  9. #9
    Join Date
    Nov 2007
    Location
    Woodbine, Georgia, United States
    Posts
    4,246
    Plugin Contributions
    58

    Default Re: How to setup google analytics?

    No, not for Adwords... You will need to add the Adwords conversion script to your checkout success page.

    ~Melanie
    PRO-Webs, Inc. since 2003 :: Zen Cart Hosting :: Zen Cart SEO – 12 Steps to Success
    **I answer questions in the forum, private messages are not conducive to a helpful community.

  10. #10
    Join Date
    Oct 2008
    Location
    newcastle upon tyne (UK)
    Posts
    876
    Plugin Contributions
    2

    Default Re: How to setup google analytics?

    i know you fiorst said you didnt want a ZC admin intergration..

    but this mod http://www.zen-cart.com/index.php?ma...roducts_id=412 will allow you to do both GA and Adwords...

    you dont use the admin side of your site to view the data.. you still log into you GA account.. Its just a bloody good mod!!!


 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. v151 Google Analytics how to
    By DownRightNatural in forum General Questions
    Replies: 7
    Last Post: 17 Mar 2016, 09:18 PM
  2. How to setup Simple Google Analytics?
    By rich00693 in forum All Other Contributions/Addons
    Replies: 5
    Last Post: 9 Dec 2009, 06:07 PM
  3. how update database properly? -Google Analytics
    By lieven23 in forum Addon Payment Modules
    Replies: 1
    Last Post: 18 Sep 2008, 09:32 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