Announcement

Collapse
No announcement yet.

Gilligan's Google Analytics Module for 5/5.5 is now FREE at Miva Central

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

  • wcw
    replied
    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;

    Leave a comment:


  • kayakbabe
    replied
    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
    &mvt:product: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;/&mvt:product: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.

    Leave a comment:


  • kayakbabe
    replied
    Re: Gilligan's Google Analytics Module for 5/5.5 is now FREE at Miva Central

    okay I think I have found a way.. I have one problem though
    within the global footer, I can't seem to get the variables
    &mvta:category:code; or &mvta:product:code;

    For gilligan's module, there is an addition to the global footer. What I did was use storemorph to modify that javascxrxipt. I output the _trackPageview content conditionally depending on the screen being displayed.
    You can look in the admin pages list to get the screen codes.
    My problem is on category (CTGY) and product pages (PROD)
    the storemorph variables for the current category and or product don't seem to exist within the footer. They just output the actual text with the ampersands and all, they don't morph!

    Any ideas?

    oh yeah here is how I modified gillian's global footer script.
    (be careful, you'll need to modify it for your own purposes and the CTGY and PROD don't work yet--looking for help here for that)


    <script type="text/javascript">
    var pageTracker = _gat._getTracker("UA-XXXXXXX-1");
    pageTracker._initData();
    <mvt:if expr="(g.screen EQ 'PROD')">
    pageTracker._trackPageview('/product/&mvt:category:code;/&mvt:product:code;.html');
    <mvt:elseif expr="(g.screen EQ 'CTGY')">
    pageTracker._trackPageview('/category/&mvta:category:code;.html');
    <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>
    Last edited by Dave Slifka; 11-10-08, 09:27 AM.

    Leave a comment:


  • kayakbabe
    replied
    Re: Gilligan's Google Analytics Module for 5/5.5 is now FREE at Miva Central

    Thanks for making this free!

    Is there a way to set the
    pageTracker._trackPageview
    for google to the short url form?

    otherwise I just get thousands of hits on merchant.mvc
    and I really would like to know which actual page in the store they are visiting.

    Leave a comment:


  • Rick Wilson
    replied
    Re: Gilligan's Google Analytics Module for 5/5.5 is now FREE at Miva Central

    Yes the module will let you do that. It's free, just download it and follow the instructions.

    Leave a comment:


  • Mr.Webby
    replied
    Re: Gilligan's Google Analytics Module for 5/5.5 is now FREE at Miva Central

    Originally posted by wmgilligan View Post
    Hi,
    You'll want to remove all the old code and only use this module as per the install doc. Using both (EXCEPT on non-merchant pages) will cause problems.

    I guess I wasn't clear. I have G-A code on other pages outside of the store. I do not currently have any code inside of the store. I want to use that same G-A code inside of the store. Will this module let me do that? How does it register with Google? Does it expect me to enter the G-A code I already have?

    Leave a comment:


  • erichar11
    replied
    Re: Gilligan's Google Analytics Module for 5/5.5 is now FREE at Miva Central

    Would also like to know how to track goals using golanalytics.

    Leave a comment:


  • papi34
    replied
    Re: Gilligan's Google Analytics Module for 5/5.5 is now FREE at Miva Central

    Originally posted by erichar11 View Post
    Do you want us to enter the web property ID UA-xxxxx-x or the entire tracking code?
    I got it working using the web property ID.

    Great addition to the core MM product...Thanks Miva!
    Last edited by papi34; 10-08-08, 09:19 PM.

    Leave a comment:


  • papi34
    replied
    Re: Gilligan's Google Analytics Module for 5/5.5 is now FREE at Miva Central

    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?
    Last edited by papi34; 10-08-08, 07:53 PM.

    Leave a comment:


  • erichar11
    replied
    Re: Gilligan's Google Analytics Module for 5/5.5 is now FREE at Miva Central

    Thanks, it uploaded fine. I have one question. In step 5 of your instructions you say:
    5. Enter your UA Tracking Code (Provided by Google)
    Do you want us to enter the web property ID UA-xxxxx-x or the entire tracking code such as:

    <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-X");
    pageTracker._trackPageview();
    </script>

    Leave a comment:


  • wmgilligan
    replied
    Re: Gilligan's Google Analytics Module for 5/5.5 is now FREE at Miva Central

    This has been fixed.
    Please re-download (or email me at bill AT gilliganandferneman.com) and I'll send you over the update.

    My mistake - late night, wrong file.
    Bill

    Leave a comment:


  • erichar11
    replied
    Re: Gilligan's Google Analytics Module for 5/5.5 is now FREE at Miva Central

    Hi all,

    just tried to install the golananalytics file with the new .js code, but when loading the new module I get the following error.

    Runtime error in 5.00/admin.mvc @ [00000009:0000009c]: admin.mv: Line 1544: MvDO: Unable to open '/mm5/5.00/MIVA_FUP00000001': File is either corrupt or not a valid compiled Miva Script file

    I noticed that the script file ends with .mv (golananalytics.mv) Should it not be .mvc? I selected the version 5 of the script and the help file says for version 5. Any help appreciated.

    Leave a comment:


  • Rick Wilson
    replied
    Re: Gilligan's Google Analytics Module for 5/5.5 is now FREE at Miva Central

    I'm actually 100% sure that 5.100 is the new version.

    Leave a comment:


  • Rick Wilson
    replied
    Re: Gilligan's Google Analytics Module for 5/5.5 is now FREE at Miva Central

    Bill updated the files last night and unless Bill chimes in to correct me, 5.100 has the latest GA.js

    Leave a comment:


  • Brandon MUS
    replied
    Re: Gilligan's Google Analytics Module for 5/5.5 is now FREE at Miva Central

    Which version of the module will use the GA.js code? MivaCentral's current version number is 5.100

    Leave a comment:

Working...
X