Trouble setting up Google Analytics Goals and Funnels

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • emdub
    Mivite

    • Apr 2010
    • 134

    #1

    Trouble setting up Google Analytics Goals and Funnels

    I already have Google Analytics set up on my store, but I'm having trouble adding goals and funnels. I'm not using any GA module (if it's already set up, is there a benefit to using one that I should know about?), but for general tracking it's working fine.

    I'm following the instructions from here: http://www.mivamerchant.com/blog/ins...a-merchant-5.5, but where I run into trouble is the goal url and the funnel urls.

    I have SEO links for products, categories, storefront, and custom pages, but not for anything during the checkout process. (We had that when we first implemented the SEO links, but people kept getting logged out of their accounts while shopping) I don't know what to put for the Goal and Funnel URLs.

    The example linked above has:
    Step 1: Shopping Basket
    /checkout/basket.html
    Step 2: Customer Login
    /checkout/login.html
    Step 3: Customer Information
    /checkout/address.html
    Step 4: Payment Information
    /checkout/payment.html

    the KSE GA module (which I downloaded, but haven't installed) shows
    /ORDL.html
    /OCST.html
    /OSEL.html
    /OPAY.html

    I think I could use the BASK, OINF, OCST in a regular expression match (right?), but the upsell page, the payment info page, the Customer Information page when the user logs in all don't show the four letter code in the URL, just merchant.mvc?Session_ID=...etc etc

    What can I do to make the Analytics Goals and Funnels work with my site? Any help would be appreciated.
  • Siamese-Dream.Com
    Mega Mivite

    • Apr 2006
    • 3785

    #2
    Re: Trouble setting up Google Analytics Goals and Funnels

    ...but the upsell page, the payment info page, the Customer Information page when the user logs in all don't show the four letter code in the URL, just merchant.mvc?Session_ID=...etc etc
    Navigate to those pages and then view the source code for them.

    Look for the google analytics javascript and look for a particular line like this:

    pageTracker._trackPageview("BASK");
    (This is what is displayed on the basket page - your other checkout pages will have different codes than BASK).

    Make a note of what four-letter code is displayed on each page that you are trying to track.

    That needs to be plugged into your GA goal funnel.

    For my checkout funnel, I just use:

    BASK
    OCST
    OSEL
    OPAY

    And the goal target is just INVC. I don't need to use .html in the fields, but double check by viewing page source and seeing exactly what the module is returning.
    Mark Romero
    ~~~~~~~~

    Comment

    • emdub
      Mivite

      • Apr 2010
      • 134

      #3
      Re: Trouble setting up Google Analytics Goals and Funnels

      Hrm, I don't see that anywhere in the GA code when I go through, it just looks like this:

      Code:
      <script type="text/javascript"> 
      var _gaq = _gaq || [];
       _gaq.push(['_setAccount', 'UA-379993-1']);
      _gaq.push(['_trackPageview']); 
      (function() { 
      var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true; 
      ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js'; 
      var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s); 
      })(); 
      </script>

      Comment

      • emdub
        Mivite

        • Apr 2010
        • 134

        #4
        Re: Trouble setting up Google Analytics Goals and Funnels

        If I use a module like KSE Google Analytics, would that add this to my pages?
        pageTracker._trackPageview("BASK");
        I suppose it would be relatively simple to just add that code myself to the GA script, if I could replace "BASK" with a dynamic piece of code that displays the 4 letter code for the current page (is that something that exists? )

        I'm also just quite curious why my urls are so inconsistent during my checkout process (and to a lesser extent, why using SEO short links kept logging people out when they were used to navigate to the basket, account, search and checkout pages).

        Any help would really be appreciated.

        Comment

        Working...
        X