Register FAQ Search Today's Posts Mark Forums Read
Miva Merchant Community Forums
User Name
Password
kayakbabe
  #21  
Old Posted: 11-06-08, 04:49 PM
Mighty Mivite
Joined Jun 2008
Posts: 565 kayakbabe is on a distinguished road
Re: Gilligan's Google Analytics Module for 5/5.5 is now FREE at Miva Central
I think I've actually found a bug in store morph
becuase
&mvt:category:code;
adn
&mvtroduct:code;
actually display just find in the global footer if there is something in the variable.

the problem is that within something like

pageTracker._trackPageview('/product/&mvt:category:code;/&mvtroduct:code;.html');

the mvt tokens are not parsed.

So maybe Ray Yates or Bill Weilands tools would be a way around it.

But it seems like it should work in store morph.. it just doesn't.

Hopefully Miva will get this fixed.
 
Reply With Quote
wcw
  #22  
Old Posted: 11-06-08, 07:04 PM
Developer Partner
Joined Mar 2006
Posts: 8,168 wcw is on a distinguished road
Re: Gilligan's Google Analytics Module for 5/5.5 is now FREE at Miva Central
There is a workaround if you have the current Emporium Plus Tool Kit. You can build an expression like you could with OpenUI in 4x. Save that expression to a variable. Then write that variable into the javascript function. You include the / character in the variable so the &mvt does not come after it; it is inside the variable. Example:

Code:
<mvt:item name="toolkit" param="mvassign|url|'/product/' $ category_code $ '/' $ l.all_settings:product:code $ '.html'" />
Test: &mvt:global:url;

 
Reply With Quote
amcgibbon
  #23  
Old Posted: 11-25-08, 11:14 AM
Mini Mivite
Joined Jul 2006
Posts: 37 amcgibbon is on a distinguished road
Re: Gilligan's Google Analytics Module for 5/5.5 is now FREE at Miva Central
I'm having a problem with implementing this. When I try and enter the code to the global footer, I get a Miva error that says "Line 117: mvt:if has no close mvt:if. I see the open and close tag for this so I'm not sure what's going on. Here is the code as it appears in our footer. I have swapped out the google analytics account number here but it is in my version on my site. I checked the other code on the page and there were no open conditionals.

<mvt:if expr="Screen NE INVC">
<script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
</script>
<script type="text/javascript">
var pageTracker = _gat._getTracker("UA-xxxxxx-2
");
pageTracker._initData();
pageTracker._trackPageview();
</script>
</mvt:if>
Last edited by amcgibbon; 11-25-08 at 11:16 AM..
 
Reply With Quote
Leanne
  #24  
Old Posted: 11-25-08, 11:38 AM
Mega Mivite
Leanne's Avatar
Joined Mar 2006
Posts: 2,086 Leanne is on a distinguished road
Re: Gilligan's Google Analytics Module for 5/5.5 is now FREE at Miva Central
What happens if you try putting all of this on one line?

var pageTracker = _gat._getTracker("UA-xxxxxx-2
");
 
Reply With Quote
amcgibbon
  #25  
Old Posted: 11-25-08, 11:57 AM
Mini Mivite
Joined Jul 2006
Posts: 37 amcgibbon is on a distinguished road
Re: Gilligan's Google Analytics Module for 5/5.5 is now FREE at Miva Central
Darned if that didn't solve the problem. Many thanks Leanne.
 
Reply With Quote
mph_vin
  #26  
Old Posted: 11-25-08, 12:49 PM
Mini Mivite
Joined May 2006
Posts: 67 mph_vin is on a distinguished road
Re: Gilligan's Google Analytics Module for 5/5.5 is now FREE at Miva Central
Quote:
Originally Posted by papi34
You need to set up GA Goals to make this work correctly...right?
What should we put for our Goal URL?
How about the following:
Code:
/INVC.html
Does that make sense if you are using SEO (short) links?
Any idea if we need to do this?
 
Reply With Quote
2chicks
  #27  
Old Posted: 11-25-08, 03:36 PM
Mivite
Joined Mar 2006
Posts: 301 2chicks is on a distinguished road
Re: Gilligan's Google Analytics Module for 5/5.5 is now FREE at Miva Central
A succinct step by step on 'what to do in Miva', and 'what to do in GA' would really help here. It is hard to track the answers as they get spread over many pages of posts.

I have the 'what to do in Miva part' from the install file in the GOL module. But what to do in GA to make this all work correctly, or how to use GOL 5 to see cart bailouts seems to be missing.

Anywhere this is all in one place?

Holly Nelson
1 of 2 Computer Chicks & miva designer
Also Offering: miva training & miva consulting
 
Reply With Quote
kayakbabe
  #28  
Old Posted: 11-25-08, 10:33 PM
Mighty Mivite
Joined Jun 2008
Posts: 565 kayakbabe is on a distinguished road
Re: Gilligan's Google Analytics Module for 5/5.5 is now FREE at Miva Central
Well there can be a LOT of variations in how a store is setup. Any store not just Miva Merchant. Since google supports them all... it's up to the coder to work through the google documentation and apply to their own store.

And exactly just what the goals are for tracking can be completely different depending on the website being tracked. It isn't just web retail stores, that use google analytics.

For example:
You might want a goal to be that a person fills in some form and then gets another page... and then does some action.. like watch a video to its completion.

OR if they use a particular pay per click add you placed out there in the www, you might want to track if they used it... just knowing someone got to a page isn't enough.

Or you might want to ask some demographic questions and then see how over time, that person does things in your website.

There are more goals than just checking out.

In a miva store, the checkout can be altered and so it isn't always the Miva default. You might have a 1 page checkout for example. For any type of store, if you want to use completing checkout all the way through the checkout completion or invoice step... you basically just follow through your checkout, grab the urls at each page load.. and then use each one of those urls as step in your 'funnel'. Your final invoice screen is your 'goal'.

IF you've customized google to use 'names' for pages instead of the url (I'll explain why you should in a min)... then you'll have to figure out what those names are and use those instead of the actual urls of your 'steps.

Google tracking can be really simple. OR google tracking can get really complicated. The data you can obtain can be really refined if you start using the customizable feature of the ga.js tracker.

*** I wanted to take a sec and explain why you might want to use the pageTracker.TrackPageView('') to actually name pages. ***

I found in my miva merchant store, that default google analytics didn't give me much information. Since everything looks like the merchant.mvc file is the same 'page' there were a lot of different screens that the customer experiences, that are not actually the same, even though the urls is merchant.mvc. However since ga thought they were the same page, all of those screens were lumped together.

Using the TrackPageView allows setting of a fake page name for different screens.

so... I used store morph to writeout an appropriate line of javascript that sets the pageTracker.TrackPageView depending on what screen including the checkout series of page.

now, in my google analytics I can see if people were looking at a category, product, or a product nested in a category, one of the checkout screens, or even an informational page template that I setup. I believe I got about 98% of the screens they'll see. There might be a few missing.

Note: I am using Ray's tool belt to get around the bug in miva that doesn't allow certain characters before a store morph token. If you have Bill's tool kit, you can use that too. Or I've seen a couple other workaround on this forum too. This just worked for me. TERMS is my own template that I used to put policies and terms for my store on. You might have something else, or not need it at all.

Code:
<script type="text/javascript">
var pageTracker = _gat._getTracker("UA-xxxxxx-x");
pageTracker._initData();
    <mvt:if expr="(g.screen EQ 'PROD')">
<mvt:item name="ry_toolbelt" param="striphtml|g.codeprod|l.all_settings:product:code" />
<mvt:item name="ry_toolbelt" param="striphtml|g.codecate|l.all_settings:category:code" />
<mvt:item name="ry_toolbelt" param="assign|g.kecode|'pageTracker._trackPageview(' $ asciichar(39) $'/product/' $ g.codecate $ '/' $ g.codeprod $ '.html' $ asciichar(39) $')'" />
&mvt:global:kecode;;
	<mvt:elseif expr="(g.screen EQ 'CTGY')">
<mvt:item name="ry_toolbelt" param="striphtml|g.codecate|l.all_settings:category:code" />
<mvt:item name="ry_toolbelt" param="assign|g.kecode|'pageTracker._trackPageview(' $ asciichar(39) $'/category/' $ g.codecate $ '.html' $ asciichar(39) $')'" />
&mvt:global:kecode;;
    <mvt:elseif expr="(g.screen EQ 'OINF')">
        pageTracker._trackPageview('/checkout/address.html');
    <mvt:elseif expr="(g.screen EQ 'OSEL')">
        pageTracker._trackPageview('/checkout/shipping.html');
    <mvt:elseif expr="(g.screen EQ 'OPAY')">
        pageTracker._trackPageview('/checkout/payment.html');
    <mvt:elseif expr="(g.screen EQ 'INVC')">
        pageTracker._trackPageview('/checkout/order.html');
	<mvt:elseif expr="(g.screen EQ 'BASK')">
        pageTracker._trackPageview('/checkout/basket.html');
	<mvt:elseif expr="(g.screen EQ 'SFNT')">
        pageTracker._trackPageview('/store/storefront.html');
	<mvt:elseif expr="(g.screen EQ 'TERMS')">
        pageTracker._trackPageview('/store/policyterms.html');
	<mvt:elseif expr="(g.screen EQ 'SMAP')">
        pageTracker._trackPageview('/store/sitemap.html');
	<mvt:elseif expr="(g.screen EQ 'ACAD')">
        pageTracker._trackPageview('/store/customer_create.html');
	<mvt:elseif expr="(g.screen EQ 'ACED')">
        pageTracker._trackPageview('/store/customer_edit.html');
	<mvt:elseif expr="(g.screen EQ 'BSKE')">
        pageTracker._trackPageview('/store/basket_empty.html');
	<mvt:elseif expr="(g.screen EQ 'LOGN')">
        pageTracker._trackPageview('/store/customer_login.html');
	<mvt:elseif expr="(g.screen EQ 'OUS1')">
        pageTracker._trackPageview('/checkout/upsell_oneitem.html');
	<mvt:elseif expr="(g.screen EQ 'OUSM')">
        pageTracker._trackPageview('/checkout/upsell_multiple.html');
	<mvt:elseif expr="(g.screen EQ 'PATR')">
        pageTracker._trackPageview('/store/product_missing_attrib_&mvta:product:code;.html');
	<mvt:elseif expr="(g.screen EQ 'SRCH')">
        pageTracker._trackPageview('/store/search.html');
	<mvt:else>
        pageTracker._trackPageview(''); 
    </mvt:if>
</script>
In the above example using custom page names, if my goal is to track checkout through the invoice. I set the google goal to be https://mydomain/checkout/order.html
and I set the steps in my funnel to start with the shopping basket page name and so on.

If you browse on the google forums for analytics you'll see that it can be very granular using this.

The trick is to make sure your custom names for screens you care about are unique for each screen. If they aren't, å everything that appears to have the same custom name will be lumped together in google analytics.

Hope that kind of helped.
Last edited by kayakbabe; 11-25-08 at 10:37 PM..
 
Reply With Quote
kayakbabe
  #29  
Old Posted: 11-25-08, 10:40 PM
Mighty Mivite
Joined Jun 2008
Posts: 565 kayakbabe is on a distinguished road
Re: Gilligan's Google Analytics Module for 5/5.5 is now FREE at Miva Central
One more thing... searching on the google groups forum for analytics will help you a lot. I found a lot of my early answers there. And also more complicated questions are often answered there.

http://www.google.com/support/forum/...nalytics?hl=en
 
Reply With Quote
ebait
  #30  
Old Posted: 11-29-08, 05:31 PM
Mini Mivite
Joined Jun 2007
Posts: 25 ebait is on a distinguished road
Re: Gilligan's Google Analytics Module for 5/5.5 is now FREE at Miva Central
I have 1 domain with 11 miva stores in it. I installed GOL 5.1 in the 1 store no problems but I get an error when trying to install in a second store.

On the invoice page when I hit update after installing this code
<mvt:item name="golanalytics" param="golanalytics:" />

I get an error message that says that to Gol anlytics item is not assigned but that item is assigned.
Any ideas?
 
Reply With Quote
Reply Reply to Thread

Thread Tools
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -7. The time now is 02:17 PM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.