Announcement

Collapse
No announcement yet.

Google Analytics Full Functionality

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    #16
    Hi Brandon MUS,

    After some tinkering the following conversion goal/funnel setup has been working for me:

    In Google Analytics:

    Goal Information:
    Goal URL: /funnel_G2/step5\.html - Purchase/Invoice

    Define Funnel:
    Step 1: /funnel_G2/step1\.html - Shopping Cart
    Step 2: /funnel_G2/step2\.html - Shipping/Billing
    Step 3: /funnel_G2/step3\.html - Shipping/Payment
    Step 4: /funnel_G2/step4\.html - Payment Info

    Additional Settings:
    Match Type: Regular Expression Match

    Then in your Miva code for each page (OINF, OSEL, etc.), include the corresponding funnel step in the header or footer:
    <script type="text/javascript">
    _uacct = "UA-XXXXX-1";
    urchinTracker("/funnel_G2/step1.html");
    </script>

    My store is all on the same domain. It's a little more challenging if your store moves to a different domain for the secure pages.

    Comment


      #17
      Is it at all possible to track purchases from Google Analytics without the Open UI?

      And, a little off topic, but is there one definitive source for information on Open UI somewhere on the web? My Google searches just keep turning up different discussion threads all over the place. How about an Open UI Wiki?

      Comment


        #18
        Not without writing a custom module that is OUI independent and calling in from the invoice screen. Otherwise you cannot pass the needed variables.

        And yes, have you tried www.openui.org/docs?

        Comment


          #19
          Originally posted by bjcleaver
          Hi Brandon MUS,

          After some tinkering the following conversion goal/funnel setup has been working for me:

          In Google Analytics:

          Goal Information:
          Goal URL: /funnel_G2/step5\.html - Purchase/Invoice

          Define Funnel:
          Step 1: /funnel_G2/step1\.html - Shopping Cart
          Step 2: /funnel_G2/step2\.html - Shipping/Billing
          Step 3: /funnel_G2/step3\.html - Shipping/Payment
          Step 4: /funnel_G2/step4\.html - Payment Info

          Additional Settings:
          Match Type: Regular Expression Match

          Then in your Miva code for each page (OINF, OSEL, etc.), include the corresponding funnel step in the header or footer:
          <script type="text/javascript">
          _uacct = "UA-XXXXX-1";
          urchinTracker("/funnel_G2/step1.html");
          </script>

          My store is all on the same domain. It's a little more challenging if your store moves to a different domain for the secure pages.
          You gave me a great idea bjcleaver. I used this OpenUI snippet in my global footer for my urchin:
          Code:
               %begin_secure%
          <!-- Secure Google Analytics Code -->
          <script src=" https://ssl.google-analytics.com/urchin.js" type="text/javascript"> </script> 
               %end_secure%
               %begin_notsecure%
          <!-- Non-Secure Google Analytics Code -->
          <script src="http://www.google-analytics.com/urchin.js" type="text/javascript"></script>
               %end_notsecure%
          <script type="text/javascript">
          	_uacct = "UA-XXXXXX-2";
          	urchinTracker("/funnel_goal/%VAR(g.Screen)%.html");
          </script>
          <!-- End Google Analytics Code -->
          It switches between secure and non-secure scripts like it should, and it includes and easy to call funnel URL string for every page in miva (in the form of /funnel_goal/SFNT.html. Now I can follow any Miva screen! Thanks beaver.

          (still waiting for data to confirm it works, but it looks pefrect [view source and you can see the tracking code]).

          Comment


            #20
            TipPro,

            Just caught this thread (I often search for "NetBlazon" but not "NetBlazEn" :) ) - can you open a support ticket at http://www.netblazon.com/support/helpdesk and I'll try to help you get the categories working? Please send login information, and let me know if it's ok for me to place test orders. I'll need to use the check payment module or something like that to pay with.

            Thanks,
            Susan
            Susan Petracco
            NetBlazon

            1.866.400.2444

            _____________________________________________

            Like us on Facebook

            Comment


              #21
              Brandon - that looks like an excellent solution. Can you confirm that it works as expected? How did you define your funnel pages in Google?

              Comment


                #22
                Although it looked great on paper, I haven't been able to get any data for goal tracking. Im' confused as to why it won't work, but at the same time, I was confused why my reg expression goals didn't work either.

                Has anyone tried contacting google about this? I didn't get any response on their user group.

                Comment


                  #23
                  I have it working fine, but not with regular expressions. My goal is set up like this:

                  Goal URL: http://www.domain.com/funnel_G1/checkout.html
                  Goal Name: Placed Order
                  Active Goal: On
                  Step 1: http://www.domain.com/funnel_G1/address.html
                  Step 1 Name: OINF
                  Step 1 IS Required
                  Step 2: http://www.domain.com/funnel_G1/shipping.html
                  Step 2 Name: OSEL
                  Step 3: http://www.domain.com/funnel_G1/payment.html
                  Step 3: Name: OPAY
                  Case Sensitive is OFF
                  Match Type: Exact
                  Goal Value: 0

                  My template code looks like this. This is OUISM template code, so you'll need to convert %%BEGINIF to %IF()%, etc, but otherwise it should work. I.e. the logic would be the same.

                  Code:
                  %%BEGINIF(g.screen EQ 'OINF')
                  	<body onLoad="javascript:urchinTracker('/funnel_G1/address.html')">
                  %%ENDIF
                  %%BEGINIF(g.screen EQ 'OSEL')
                  	<body onLoad="javascript:urchinTracker('/funnel_G1/shipping.html')">
                  %%ENDIF
                  %%BEGINIF(g.screen EQ 'OPAY')
                  	<body onLoad="javascript:urchinTracker('/funnel_G1/payment.html')">
                  %%ENDIF
                  %%BEGINIF(g.screen EQ 'INVC' and g.Data_Entry_Error)
                  	<body onLoad="javascript:urchinTracker('/funnel_G1/payment.html')">
                  %%ENDIF
                  %%BEGINIF(g.screen EQ 'INVC' and (NOT g.Data_Entry_Error))
                  	<body onLoad="javascript:urchinTracker('/funnel_G1/checkout.html');__utmSetTrans()">
                  %%ENDIF
                  %%BEGINIF(g.screen NE 'OINF' AND g.screen NE 'OSEL' AND g.screen NE 'OPAY' AND g.screen NE 'INVC')
                  	<body>
                  %%ENDIF
                  Hope this helps.

                  --Susan
                  Susan Petracco
                  NetBlazon

                  1.866.400.2444

                  _____________________________________________

                  Like us on Facebook

                  Comment


                    #24
                    I have this as my goal tracking with regular expressions.

                    Goal Information:
                    Goal URL: /funnel_G2/step5\.html - Purchase/Invoice

                    Define Funnel:
                    Step 1: /funnel_G2/step1\.html - Shopping Cart
                    Step 2: /funnel_G2/step2\.html - Shipping/Billing
                    Step 3: /funnel_G2/step3\.html - Shipping/Payment
                    Step 4: /funnel_G2/step4\.html - Payment Info

                    Additional Settings:
                    Match Type: Regular Expression Match

                    Comment


                      #25
                      I wasn't using this in the onload attribute of the body tag. Google's help files didn't have theirs up there either, but I'll try anything.

                      Code:
                      %OUI%onload="javascript:urchinTracker('/funnel_goal/%VAR(g.Screen)%.html');%begin_screen|INVC%__utmSetTrans();%end_screen|INVC%"
                      (crosses fingers)

                      Comment


                        #26
                        Update: It works!

                        I also switch my goal tracking to an exact match like netblazon recommended.

                        Comment


                          #27
                          Glad to hear it worked!

                          How are you using it to track screens other than the checkout pages? Did you add SFNT and product pages to your funnel?

                          Comment


                            #28
                            No, I'm tracking checkout (pretty much what netblazon posted) and creating accounts.

                            The site this is for is new and just starting up, so as we learn what we even want to learn about the browsing patterns, I'll add more.

                            Comment


                              #29
                              Hi Guys,

                              So it works to load the urchinTracker address in the body tag? Because GA help says this explicity several times:
                              Important: if your pages include a call to urchinTracker(), utmLinker(), utmSetTrans(), or utmLinkPost(), the tracking code must be placed in your page's code above any of these calls. In these cases the tracking code can be placed anywhere between the opening <body> tag and the JavaScript call.
                              I was going to use window.onload to follow the specs, but if I can use the body tag (even though the call would be above the tracking code), all the better.

                              Thanks,

                              Marv

                              Comment


                                #30
                                the body onload call isn't exceuted until after the page is loaded, so it won't matter that the call is technically above the code. It seems to be working great for us once we put it in the onload attribute.

                                Comment

                                Working...
                                X