Announcement

Collapse
No announcement yet.

Google Analytics Module Issue

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

    Google Analytics Module Issue

    Hi there,


    Hopefully this is a simple fix.

    I'm having some issues with the analytics module after upgrading to production 6.

    I have tried upgrading the module as well but still am not getting any ecommerce stats. I think it is a double-up of the analytics output on the invoice page.



    I don't think <mvt:if expr="Screen NE INVC"> is working??


    Here are my settings:


    --------------------------------
    Install Stats
    --------------------------------

    Module GOL Analytics: v5.100

    Production Release 6
    Miva Merchant Engine v5.06
    Database API: mysql

    --------------------------------
    Invoice Page Template:
    --------------------------------
    1. Item golanalytics assigned
    2. Code at bottom of page template:

    <mvt:item name="golanalytics" param="golanalytics:" />



    <script language="javascript" type="text/javascript">
    <!--
    urchinTracker('/G1/invoice.html');
    -->
    </script>
    </html>

    --------------------------------
    Sitewide Page Footer Include (through Wow Wow Widgets):
    --------------------------------

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

    </mvt:if>

    --------------------------------
    Source Code View of Invoice page:
    --------------------------------


    showing double analytics code


    Part 1 (from the sitewide footer):



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


    Part 2 (from the analytics module):


    <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("https://www.domainname.com/v3-img/pixel.gif");
    pageTracker._initData();
    pageTracker._trackPageview();
    pageTracker._addTrans("26224","StoreCodeUSA","13.7 5","0","0","Santa
    Cruz","CA","US");
    pageTracker._addItem( "26224","PF-SS-C","Product Name","","6.95","1"
    ); pageTracker._trackTrans(); </script>

    <script language="javascript" type="text/javascript">
    <!--
    urchinTracker('/G1/invoice.html');
    -->
    </script>
    </html>
    ~~~~~~~~~~~
    theClickLab.com
    LinkedIn
    ~~~~~~~~~~~

    #2
    Re: Google Analytics Module Issue

    SO I guess what I'm asking is if this is correct:

    <mvt:if expr="Screen NE INVC">

    Analytics Code

    </mvt:if>

    because it is showing on the Invoice Screen
    ~~~~~~~~~~~
    theClickLab.com
    LinkedIn
    ~~~~~~~~~~~

    Comment


      #3
      Re: Google Analytics Module Issue

      The condition tests if the active screen is the invoice and executes the code.
      Andreas Toman
      PCINET, LLC

      Miva Merchant Design, Development, Integration & Support
      We built over 200 Miva Merchant stores!
      Miva shopping cart design & integration service and see our Portfolio!


      e-mail: [email protected]
      web: www.pcinet.com
      LinkedIn: Andreas Toman
      phone: (786) 250-2056 (Miami, FL)

      Comment


        #4
        Re: Google Analytics Module Issue

        You might want to skip the module and follow this
        http://extranet.mivamerchant.com/for...ogle+analytics

        worked great for me
        Mark Hood
        Vermont Gear

        Comment


          #5
          Re: Google Analytics Module Issue

          Originally posted by FlyBye76 View Post
          You might want to skip the module and follow this
          http://extranet.mivamerchant.com/for...ogle+analytics

          worked great for me
          Yep... worked great thanks!
          ~~~~~~~~~~~
          theClickLab.com
          LinkedIn
          ~~~~~~~~~~~

          Comment

          Working...
          X