Stores -> Storename -> Hdr/Footer Gobal - Global Screen Footer edit box.
Announcement
Collapse
No announcement yet.
Google Analytics - Revisited
Collapse
X
-
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
-
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 CoppleI 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
-
Originally posted by Marc AndersonOur data appears to be updating regularly, but is always at least one day behind, which I suppose is to be expected.Susan Petracco
NetBlazon
1.866.400.2444
_____________________________________________
Like us on Facebook
Comment
-
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
-
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,
SusanSusan Petracco
NetBlazon
1.866.400.2444
_____________________________________________
Like us on Facebook
Comment
-
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 ComputersI 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 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
-
Originally posted by gmotionVic,
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... ;-)
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
-
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.
--SusanSusan Petracco
NetBlazon
1.866.400.2444
_____________________________________________
Like us on Facebook
Comment
Comment