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.
Announcement
Collapse
No announcement yet.
Google Analytics Full Functionality
Collapse
X
-
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 -->
-
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
-
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
-
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
-
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
-
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
-
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
Comment