Announcement

Collapse
No announcement yet.

Gilligan's Google Analytics Module: Double Quotes in Product Name

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

    Gilligan's Google Analytics Module: Double Quotes in Product Name

    Is there anyway to remove/handle the double quotes that may exist in product names when being passed to Google Analytics by way of the GOLAN module?

    Example Product Name: 14" Widget

    When passed to Google Analytics using the module would look like this:

    Code:
    <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._initData();
      pageTracker._trackPageview();
      pageTracker._addTrans("200074","XY","46.81","0","0","Boston","MA","US");
    
     pageTracker._addItem( "200074","WIDGET14","14" Widget","","29","1" ); pageTracker._trackTrans(); </script>
    Note the last line where it passes the line item info and the double quote in the product name essentially ends the parameter prematurely

    Code:
     pageTracker._addItem( "200074","WIDGET14","14" Widget","","29","1" ); pageTracker._trackTrans(); </script>
    Geoff Manning
    -------------------------
    Miva Sites: Oriental Furniture | Room Dividers

    #2
    Re: Gilligan's Google Analytics Module: Double Quotes in Product Name

    Use toolkit or toolbelt to remove/replace the quotes before submitting it to Google.
    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


      #3
      Re: Gilligan's Google Analytics Module: Double Quotes in Product Name

      Well, the code I displayed above is generated and parsed onto the resulting .html page through the GOLAN module so I have no direct access to what is passed to it (or do I?).

      Can I set the variable that is used by the module prior to invoking the module?

      I'll check with the developer, wasn't sure if someone had come across this before.

      Thanks!
      Geoff Manning
      -------------------------
      Miva Sites: Oriental Furniture | Room Dividers

      Comment


        #4
        Re: Gilligan's Google Analytics Module: Double Quotes in Product Name

        I highly recommend dropping the module and implementing Google Analytics directly, using straight SMT. This will allow you to use the Toolkit or Toolbelt per Andreas suggestion. If you need the code, contact me off-forum. We also offer professional Google Analytics Integration if you don't want to do it yourself.

        Comment


          #5
          Re: Gilligan's Google Analytics Module: Double Quotes in Product Name

          I agree with Dan on this one about dropping the module, you might find this blog post on installing Google Analytics in Miva Merchant helpful, http://blog.mivamerchant.com/397/ins...-merchant-5-5/
          Mark Simon | SEO Specialist | Miva Merchant

          Connect and join the conversation with Miva Merchant on Twitter, Facebook, YouTube, Vimeo & our blog.

          Comment


            #6
            Re: Gilligan's Google Analytics Module: Double Quotes in Product Name

            That's a great tutorial, Mark.

            i don't suppose we could get you to do one for Merchant 4.X compiled though, could we :)
            Mark Romero
            ~~~~~~~~

            Comment


              #7
              Re: Gilligan's Google Analytics Module: Double Quotes in Product Name

              Thanks Dan and Mark, I will drop the module.

              Mark, that blog post only has to do with the Analytics code and funnel definition. The GOLAN module really only helps with the ecommerce function of the INVC page. Is there any how-to's for implementing that code manually?

              I've found this:

              http://extranet.mivamerchant.com/for...ead.php?t=6126

              Is that accurate?
              Geoff Manning
              -------------------------
              Miva Sites: Oriental Furniture | Room Dividers

              Comment


                #8
                Re: Gilligan's Google Analytics Module: Double Quotes in Product Name

                The code included with that tutorial covers the conversion tracking as well.

                Comment


                  #9
                  Re: Gilligan's Google Analytics Module: Double Quotes in Product Name

                  Originally posted by Dan - Kemper Strategic View Post
                  The code included with that tutorial covers the conversion tracking as well.
                  I must be missing something then, this tutorial:

                  http://blog.mivamerchant.com/397/ins...-merchant-5-5/

                  Only covers Analytics setup, and goal funnel definition (ie: goal conversion). I need the info for tracking ecommerce which GOLAN handles with it's module and this code on INVC:

                  Code:
                  <mvt:item name="golanalytics" param="golanalytics:" />
                  It handles sending the transaction envelope info and individual products purchased, shipping, tax, etc.
                  Geoff Manning
                  -------------------------
                  Miva Sites: Oriental Furniture | Room Dividers

                  Comment


                    #10
                    Re: Gilligan's Google Analytics Module: Double Quotes in Product Name

                    The integration code for this tutorial can be found here. (the link to the code is not very prevalent in the tutorial)

                    Comment


                      #11
                      Re: Gilligan's Google Analytics Module: Double Quotes in Product Name

                      Originally posted by Dan - Kemper Strategic View Post
                      The integration code for this tutorial can be found here. (the link to the code is not very prevalent in the tutorial)
                      Ahhh, you are correct. My apologies. I missed that.

                      Thanks!
                      Geoff Manning
                      -------------------------
                      Miva Sites: Oriental Furniture | Room Dividers

                      Comment


                        #12
                        Re: Gilligan's Google Analytics Module: Double Quotes in Product Name

                        I missed it too the first time I looked at it. ...hint, hint Mark :)

                        Comment

                        Working...
                        X