Announcement

Collapse
No announcement yet.

Google Analytics Full Functionality

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

    Google Analytics Full Functionality

    Has anyone managed to get the full functionality of Google Analytics to work within their MM4 Store? I have "tracking" working, but I can NOT get ecommerce/conversion tracking to work.
    Yer pal,
    Matt

    My Miva Sites:
    www.gurkeescentral.com
    www.novacompanies.com
    www.novatan.com

    #2
    Very close, everything except the categories

    Here is quick run through of my code... (*with help from NetBlazen for the 'Order Complete Thank You' while loop code)

    Category Problem: I tried using NetBlazen's suggestion of using the product category from bread crumbs plus token
    %module|NBBC_PLUS|primary-name2% but it output the first category found in my store for every product.

    Code:
     
    
    HeadTag Insert:
    %OUI%
    
    %begin_notsecure%
    <script src="http://www.google-analytics.com/urchin.js" type="text/javascript"></script>
    <script type="text/javascript">_uacct = "xx-xxxxx-x"; urchinTracker();</script>
    %end_notsecure%
    
    %begin_secure%
    <script src="https://ssl.google-analytics.com/urchin.js" type="text/javascript"></script>
    <script type="text/javascript">_uacct = "xx-xxxxx-x"; urchinTracker();</script>
    %end_secure%
    
    
    BodyTag Insert:
    %OUI%
    
    %IF(g.screen EQ 'INVC' and (NOT g.Data_Entry_Error))%
    onload="javascript:__utmSetTrans()"
    %IFEND%
    
    
    Order Completed Thank You:
    %OUI%
    <!-- START : GA Invoice Submit -->
    <form style="display:none;" name="utmform"><textarea id="utmtrans">
    
    UTM:T|%ORDERNUM%|your store name|%order_total%|%order_tax%|%order_shipping%|%order_ship_city%|%order_ship_state%|%order_ship_cntry%
    
    %FUNC(OrderItem_FindFirst_Order(Orders.d.id))%
    %WHILE(g.OUIX_FuncReturn)%
    UTM:I|%ORDERNUM%|%VAR(OrderItems.d.code)%|%VAR(OrderItems.d.name)%|product category|%VAR(OrderItems.d.price)%|%VAR(OrderItems.d.quantity)%
    %FUNC(OrderItem_FindNext_Order(Orders.d.id))%
    %WHILEEND%
    
    </textarea></form>
    <!-- END : GA Invoice Submit -->

    Comment


      #3
      Any luck?

      Has anyone figured out how to add a dynamic category for each product in the Google Analytics tracking code?

      Comment


        #4
        tipPro, where did you put the code for the "Order completed page" In the invoice header or footer? Still trying to get the ecommerce working.

        Comment


          #5
          From the Miva Merchant administration panel...

          on the right hand navigation, expand "Stores" and click on Your Store Name
          >

          on the left hand navigation, click on "Hdr/Ftr - Checkout Screens"

          >

          near the bottom of the page, add the code in the
          "Order Completed Thank You" text box

          Comment


            #6
            Originally posted by erichar11
            tipPro, where did you put the code for the "Order completed page" In the invoice header or footer? Still trying to get the ecommerce working.
            Invoice Footer. Screen INVC.

            Comment


              #7
              Thanks everyone, I followed the instructions above for getting ecommerce data and for the first time yesturday, GOL is reporting the data. Awsome.

              Comment


                #8
                My Analytics page has been in the "receiving data" mode for 3-5 days. I wasn't sure if this was normal after setting up the account.
                Tim S. Raisbeck, owner
                Charlotte’s Saddlery Inc.

                11623A Katy Freeway
                Houston, Texas 77079
                1.800.231.6530

                http://www.charlottes-saddlery.com
                Proudly Serving the Equine Industry for Over 35 Years.

                Comment


                  #9
                  One of my sites took about 3 days of receiving data before it kicked on. But if it takes much longer, you should definately double check everything. THe code has been known to be very picky about where it sits.

                  Comment


                    #10
                    Hi gulfcoast,

                    I'm not sure what site you are trying to get google data from as the site in your sig http://www.charlottes-saddlery.com does not have google analytics script functions in it. I viewed your source on this page and the script to collect data is not there. Anyway, it took about 24 hours before it started collecting data, 3-5 days seems long. Not sure why it takes so long.

                    Comment


                      #11
                      I wish you guys would stay on topic. This thread is labeled "Google Analytics Full Functionality". There are plenty of other threads in this forum that deals with Google's side of processing data and trouble shooting Web sites with the Google Analytics code.

                      Comment


                        #12
                        TipPro:

                        The code for: Order Completed Thank You Screen

                        I'm a little confused.
                        Do I modify that code at all i.e. "Your Store Name" and "Product Category" or leave exactly as you have it?
                        Tim S. Raisbeck, owner
                        Charlotte’s Saddlery Inc.

                        11623A Katy Freeway
                        Houston, Texas 77079
                        1.800.231.6530

                        http://www.charlottes-saddlery.com
                        Proudly Serving the Equine Industry for Over 35 Years.

                        Comment


                          #13
                          Hi Gulfcoast, yeah the code does need a tiny bit of editing. I colored all the parts of the code in a bright red that needs your attention.

                          For example Your Store Name needs to be changed to your actual store name (i.e. Charlottes Saddlery).

                          In my original post I mentioned that I do not have a work around yet for Product Category, I am hoping someone comes up with a working solution. For now you can just leave Product Category blank.

                          Also in the head tag insert you need to change
                          xx-xxxxx-x
                          to your store code that Google Analytics provides to you.

                          Comment


                            #14
                            Thank You. Sorry for the ignorance. We all appreciate your help.
                            Tim S. Raisbeck, owner
                            Charlotte’s Saddlery Inc.

                            11623A Katy Freeway
                            Houston, Texas 77079
                            1.800.231.6530

                            http://www.charlottes-saddlery.com
                            Proudly Serving the Equine Industry for Over 35 Years.

                            Comment


                              #15
                              Has anyone been successful setting up goals? I was trying to track new customer accounts being created, but I haven't been successful so far.

                              I see it as a two step process:
                              Step 1: .*/Merchant2/merchant\.mv?.*Screen=ACNT.* //They are at the new account screen
                              Step 2: .*/Merchant2/merchant\.mv?Session_ID=.* //They get redirected and assigned a session ID upon success.
                              Goal URL: https://www\.mydomain\.com.* //They eventually end up redirected to the main page (may vary)

                              The reason I don't see it as a one step process is if they don't want to fill in all of the info, they may leave. Unfortunately, I never get any results back. I'm pretty confident in the reg expressions, but since I have a filter set up on Session_ID, do you think that would cause GA to ignore it completely?

                              Comment

                              Working...
                              X