Announcement

Collapse
No announcement yet.

Google Analytics - Revisited

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

    #16
    Stores -> Storename -> Hdr/Footer Gobal - Global Screen Footer edit box.

    Comment


      #17
      So for standard implementation, we put it in the global footer and for added info from the invoice, we add the invoice code in the invoice footer... Cool -

      Tks!

      Comment


        #18
        More Advanced Analytics Implementation

        How many of you are passing product data on the invoice screen as well? I'm working with 4 different stores to implement various more advanced parts of Analytics. The two OpenUI non-templated stores currently pass product data with code like this in the Invoice Footer (watch out for code wrapping):

        %OUI%
        <form style="display:none;" name="utmform">
        <textarea id="utmtrans">
        UTM:T|%ORDERNUM%|StoreName|%order_total%|%order_ta x%|%order_shipping%|%VAR(Orders.d.ship_city)%|%VAR (Orders.d.ship_state)% |%VAR(Orders.d.ship_cntry)%
        %FUNC(OrderItem_FindFirst_Order(Orders.d.id))%
        %WHILE(g.OUIX_FuncReturn)%
        UTM:I|%ORDERNUM%|%VAR(OrderItems.d.code)%|%VAR(Ord erItems.d.name)%|Category|%VAR(OrderItems.d.price) %|%VAR(OrderItems.d.quantity)%
        %FUNC(OrderItem_FindNext_Order(Orders.d.id))%
        %WHILEEND%
        </textarea>
        </form>

        This also requires the following in the body tag settings:

        %OUI%%IF(g.screen EQ 'INVC' and (NOT g.Data_Entry_Error))%onload="javascript:__utmSetTr ans()"%IFEND%

        Currently the category is hardcoded as "Category". With one of the two templated stores, we're using a token from our Category Breadcrumbs Plus module to pass the "primary category" field that is stored in that module. (It defaults to the first entry found in the CategoryXProduct database, so that it's never blank unless the product is not assigned to any categories.) That allows the customer to review stats by category in the Analytics reports. Plus it gives them some control over which category is used by the system, but it doesn't require them to assign a primary category for every product unless they choose to.

        Then finally on our own WonderBrains site, we're using some code from David Pontius that I modified to allows us to track goal conversions and abandonment through the "funnel" of OINF > OSEL > OPAY > INVC...the typical MIVA Merchant checkout path (without upsell).

        I haven't tackled any PPC tracking yet, and I'm interested to hear from anyone who has.
        Susan Petracco
        NetBlazon

        1.866.400.2444

        _____________________________________________

        Like us on Facebook

        Comment


          #19
          Receiving Data

          We experienced a 3-4 day delay in receiving data when we first placed the code in the store. Our data appears to be updating regularly, but is always at least one day behind, which I suppose is to be expected. I find it useful as yet another tool to validate other statistics that we review on a regular basis.

          Originally posted by Wesley Copple
          I got my invite last week and pasted the code into my store.

          The interface told me that it was " Receiving Data".

          Well, it's been "Receiving Data" for over a week now. I was wondering if anyone has been successfully running it, and how long it took before it produced something useful?

          Also, for all you need "Re-Miva-al" lessons like myself, I posted the code into the end of my Global Screen Footer. That made it show up at the end of the body tag. Seems when I pasted it directly into the body tag, it discombobulated the layout.
          Moose AB Web Site Development
          Lindsborg, KS
          :D

          Comment


            #20
            What URL did you put for your store tracking? I put our customer's full merchant URL in but it won't take it.

            Comment


              #21
              Originally posted by Marc Anderson
              Our data appears to be updating regularly, but is always at least one day behind, which I suppose is to be expected.
              There documentation says that stats are only updated every 24 hours. Just FYI. I had to look at up myself when I was troubleshooting a problem and wondering whether I hadn't fixed it, or if the stats hadn't been updated yet.
              Susan Petracco
              NetBlazon

              1.866.400.2444

              _____________________________________________

              Like us on Facebook

              Comment


                #22
                How do you all track goals in Miva? GA is asking for the URL's for the funnel - do you use this format, changing the OINF for the other checkout pages? http://www.mydomain.com/store/mercha...e_Code=mystore

                Thanks
                Tonya Gray
                gmotion.com
                [email protected]

                Comment


                  #23
                  Tonya,

                  You have to "fake it" by calling the urchinTracker function in the <body> tag onload event handler. I've only done this on one site, and it's done with OpenUI Supermod templates, but hopefully this will give you an idea for the process:

                  %%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

                  In Analytics, you set up the goal as:

                  Step 1: http://www.wonderbrains.com/funnel_G1/address.html
                  Name: OINF
                  (Required)

                  Step 2: http://www.wonderbrains.com/funnel_G1/shipping.html
                  Name: OSEL

                  Step 3: http://www.wonderbrains.com/funnel_G1/payment.html
                  Name: OPAY

                  Goal: http://www.wonderbrains.com/funnel_G1/checkout.html
                  Name: Placed Order

                  Not case sensitive
                  Match type: Exact match
                  Goal Value: 0

                  HTH,
                  Susan
                  Susan Petracco
                  NetBlazon

                  1.866.400.2444

                  _____________________________________________

                  Like us on Facebook

                  Comment


                    #24
                    E-commerce tracking code not working

                    Hey Vic,

                    I installed the E-commerce tracking code you listed below, but it didn't work for me. Before installing your code I had the example Google code installed just to prove it worked, but of course wasn't grabbing my actual sales data.

                    Any ideas? I do have OpenUI installed.

                    Morgan





                    Originally posted by Vic - WolfPaw Computers
                    I would disagree. Analytics is being offered slowly to people who signed up, allowing Google time to add resources to accomodate the load.

                    We've had fairly good results from those that have used it.

                    Tonya, to answer your question, you shouldnt need anything other than OpenUI to use Analytics.

                    Place the tracking code in your Global Footer under Stores -> Storename -> Headers/Footers Global.

                    However, you may want to use a conditional to execute the code securely to avoid SSL warnings in the browser:

                    Code:
                    %begin_secure%
                    <!-- Secure Google Analytics Code Tag -->
                    <script src=" https://ssl.google-analytics.com/urchin.js" type="text/javascript"> 
                    </script> 
                    <script type="text/javascript"> 
                    _uacct = "UA-XXXXX-X"; 
                    urchinTracker(); 
                    </script>
                    <!-- End Secure Google Analytics Code Tag -->
                    %end_secure%
                    %begin_notsecure%
                    <!-- Non-Secure Google Analytics Code Tag -->
                    <script src="http://www.google-analytics.com/urchin.js" type="text/javascript">
                    </script>
                    <script type="text/javascript">
                    _uacct = "UA-XXXXX-X";
                    urchinTracker();
                    </script>
                    <!-- End Google Analytics Code Tag -->
                    %end_notsecure%
                    If you need to track static pages, add it as the last line to your HTML just before the </BODY> tag. Without the OUI stuff of course.

                    If you want to use the E-commerce tracking ability, there is a completely different code you need to paste into your INVC screen footer:

                    Code:
                    %OUI%
                    <form style="display:none;" name="utmform">
                    <textarea id="utmtrans">UTM:T|%ORDERNUM%||%TOTAL%|%order_tax%|%order_shipping%|%order_bill_city%|%order_bill_state%|%order_ship_cntry%
                    UTM:I|%ORDERNUM%|||||
                    </textarea>
                    </form>

                    Comment


                      #25
                      I'm still fiddling with the ROI and sales stuff myself.

                      Haven't had the time to figure out why its not picking up the sales data yet. It is tracking hits/visits, etc, but not the sales data yet.

                      Comment


                        #26
                        Vic,

                        I installed the code you sent in, but the %begin%.. etc. is showing through. Maybe it's my "head-in-the-pollen" allergy thing, but what can I do to keep it from showing through to the page?? I know this is going to be one of those silly things I'm overlooking... ;-)

                        Comment


                          #27
                          Originally posted by gmotion
                          Vic,

                          I installed the code you sent in, but the %begin%.. etc. is showing through. Maybe it's my "head-in-the-pollen" allergy thing, but what can I do to keep it from showing through to the page?? I know this is going to be one of those silly things I'm overlooking... ;-)
                          Yes, you are likely missing the %OUI% which needs to be the very first 5 characters in the global footer edit box.

                          Either that or you do not have OpenUI installed. If both are present, check under Store -> Storename -> Tokens and be sure Token Parsing is turned on.

                          Comment


                            #28
                            OK, I had the %OUI% just before the GA code instead. That is it then. Tks!

                            Comment


                              #29
                              Pamela,

                              I was reading over your post again about how to incorporate the goals/funnels in Miva. Would that not be able to be done using the header or footer for each checkout page also or do you need access to parts of the source to make it work? Tks!

                              Tonya Gray
                              Gmotion.com

                              Comment


                                #30
                                Tonya, did you mean me (Susan) instead of Pamela?

                                It needs to be done inside the body tag. You could do it with OpenTokens in the BodyTag Insert Area, under Head/Body Tags. The code would be a little different than what I posted...something like:

                                %OUI%
                                %IF(g.screen EQ 'OINF')%
                                onLoad="javascript:urchinTracker('/funnel_G1/address.html')"
                                %IFEND%

                                %IF(g.screen EQ 'OSEL')%
                                onLoad="javascript:urchinTracker('/funnel_G1/shipping.html')"
                                %IFEND%

                                %IF(g.screen EQ 'OPAY')%
                                onLoad="javascript:urchinTracker('/funnel_G1/payment.html')"
                                %IFEND%

                                %IF(g.screen EQ 'INVC' and g.Data_Entry_Error)%onLoad="javascript:urchinTrack er('/funnel_G1/payment.html')"
                                %IFEND%

                                %IF(g.screen EQ 'INVC' and (NOT g.Data_Entry_Error))%
                                onLoad="javascript:urchinTracker('/funnel_G1/checkout.html');__utmSetTrans()"
                                %IFEND%

                                Note this is completely untested...YMMV. You'll probably have to remove all of the line breaks so your body tag is all on one line.

                                --Susan
                                Susan Petracco
                                NetBlazon

                                1.866.400.2444

                                _____________________________________________

                                Like us on Facebook

                                Comment

                                Working...
                                X