Page 1 of 2 12 LastLast
Results 1 to 10 of 15
  1. #1
    Join Date
    Feb 2010
    Posts
    140
    Plugin Contributions
    0

    Default Google Analytics and goal tracking

    I have looked around the forum and add-ons and seen
    scripts which add google analytics tracking to zencart.

    I am not looking to add any further add-ons to the current
    setup I have, but would like to know if add the google
    tracking code to the checkout_success page under
    define_page editor.
    Then setup a goal to record everytime the
    checkout_sucess page is displayed, that it will track the number of
    sales.

    I believe the checkout success url should be:
    index.php?main_page=checkout_sucess

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

    Default Re: Google Analytics and goal tracking

    No it cannot be added in your defined pages editor.

    ~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.

  3. #3
    Join Date
    Feb 2010
    Posts
    140
    Plugin Contributions
    0

    Default Re: Google Analytics and goal tracking

    Is there a reason why this would not work?

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

    Default Re: Google Analytics and goal tracking

    Yes, the tracking needs to be in a specific location.... the body, just before the closing body tag.

    The defined text is not in the correct location.

    You may get results, but they will not be reliable

    ~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.

  5. #5
    Join Date
    Feb 2010
    Posts
    140
    Plugin Contributions
    0

    Default Re: Google Analytics and goal tracking

    According to google it should go before the closing </head> tag though I have seen other sites place it at the bottom of the
    page before the closing body tags as you have said.
    It seems to me it won't matter where it is as long as its picked up and sends data back to google (I may be wrong on that though). Which I would expect it to do
    if its only appears on the checkout_succes page which would load completely after customers purchase.

    I have put it in to see how it goes, aslong as it does not interfere with the shopping cart checkout functionality then I will try it to see what happens.
    Seemed to be ok when I put through a test purchase. I can always delete the goal if does not workout as expected.

  6. #6
    Join Date
    Jul 2009
    Location
    Texas
    Posts
    209
    Plugin Contributions
    2

    Default Re: Google Analytics and goal tracking

    Quote Originally Posted by neit View Post
    According to google it should go before the closing </head> tag though I have seen other sites place it at the bottom of the
    page before the closing body tags as you have said.
    It seems to me it won't matter where it is as long as its picked up and sends data back to google (I may be wrong on that though). Which I would expect it to do
    if its only appears on the checkout_succes page which would load completely after customers purchase.

    I have put it in to see how it goes, aslong as it does not interfere with the shopping cart checkout functionality then I will try it to see what happens.
    Seemed to be ok when I put through a test purchase. I can always delete the goal if does not workout as expected.
    Used to be you put it on the bottom of your page so as not to slow down the rendering of the page as the javascript loads. However the new code Google uses loads the javascript asynchronously so this isn't a problem.

    Best place to put it is probably in includes/templates/YOUR_TEMPLATE/common/tpl_header.php or tpl_main_page.php whichever floats your boat.

    I don't see any reason why you would ONLY track the checkout_success page. Track everything.. then you can drill down to which hits were on what page.

    After you get basic analytics working then work on getting a goal funnel for your e-commerce conversions.


    You might want to look into the google analytics modules anyway. The one I'm using was actually quite simple. And it was easier to manage then my previous code hacks.

  7. #7
    Join Date
    Mar 2006
    Location
    Australia
    Posts
    289
    Plugin Contributions
    3

    Default Re: Google Analytics and goal tracking

    Hi neit
    Did you end up installing this into your template header? What are the results, any feedback?

  8. #8
    Join Date
    Mar 2006
    Location
    Australia
    Posts
    289
    Plugin Contributions
    3

    Default Re: Google Analytics and goal tracking

    Quote Originally Posted by llynix View Post
    Used to be you put it on the bottom of your page so as not to slow down the rendering of the page as the javascript loads. However the new code Google uses loads the javascript asynchronously so this isn't a problem.

    Best place to put it is probably in includes/templates/YOUR_TEMPLATE/common/tpl_header.php or tpl_main_page.php whichever floats your boat.

    I don't see any reason why you would ONLY track the checkout_success page. Track everything.. then you can drill down to which hits were on what page.

    After you get basic analytics working then work on getting a goal funnel for your e-commerce conversions.


    You might want to look into the google analytics modules anyway. The one I'm using was actually quite simple. And it was easier to manage then my previous code hacks.
    Adding the pixel here will actually place it after the </head>, I'm just trying to find out where I can place it so it appears before the </head>

  9. #9
    Join Date
    Feb 2008
    Posts
    1,336
    Plugin Contributions
    1

    Default Re: Google Analytics and goal tracking

    Best solution is to download the Google Analytic by Andrew. Simple to install and would work with Ecommerce Conversion.

    Other than that good luck getting the conversion rate working.

  10. #10
    Join Date
    Mar 2006
    Location
    Australia
    Posts
    289
    Plugin Contributions
    3

    Default Re: Google Analytics and goal tracking

    Hmmm,
    not sure why you're saying that?
    anyhow the file to paste your pixel into is includes/templates/my-template/common/html_header.php
    I will keep you posted if this all works.
    The issue with Andrew's contribution is I think that it places the pixel before end of the body with is the old way Goole recommended.

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. v138a Google Analytics Goal Funnel from Home to Order
    By etilyeti in forum General Questions
    Replies: 3
    Last Post: 17 Sep 2013, 05:11 AM
  2. Google Analytics, Goal Funnel and PayPal Standard
    By molarty in forum All Other Contributions/Addons
    Replies: 0
    Last Post: 13 May 2010, 02:12 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