Miva and Google Analytics problem

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • rcm1234
    Mini Mivite

    • Oct 2011
    • 71

    #1

    Miva and Google Analytics problem

    Hi,

    The default basket code on our miva 5.5 site --> <mvt:item name="buttons" param="AddToBasket">
    is causing errors/confusion with our Google Analytics tracking... i.e. we are getting 2-3 different results tracked for the same basket sometimes (*the seo link version '/BASK/' plus at least 1 or 2 dynamic versions of the same bask url).

    Is there some way to have Google Analytics tracking only identify/pick-up our seo version of the bask link?

    thanks in advance
  • Siamese-Dream.Com
    Mega Mivite

    • Apr 2006
    • 3785

    #2
    Re: Miva and Google Analytics problem

    Are you using a module for tracking analytics or are you using a script you wrote yourself?

    If you can copy and paste the script (if you are using your own) then we can offer some suggestions.
    Mark Romero
    ~~~~~~~~

    Comment

    • rcm1234
      Mini Mivite

      • Oct 2011
      • 71

      #3
      Re: Miva and Google Analytics problem

      Hi,

      We are using this in the global footer for tracking google analytics -->


      <!-- Google Code for remarketing global footer Remarketing List --> <script type="text/javascript"> /* <![CDATA[ */ var google_conversion_id = 0123456789; var google_conversion_language = "en"; var google_conversion_format = "3"; var google_conversion_color = "666666"; var google_conversion_label = "4ZAiCJ_14QEQjZKM_wM"; var google_conversion_value = 0; /* ]]> */ </script>
      <script type="text/javascript" src="https://www.googleadservices.com/pagead/conversion.js"> </script>

      Comment

      • rcm1234
        Mini Mivite

        • Oct 2011
        • 71

        #4
        Re: Miva and Google Analytics problem

        Ad this code too (sorry I didn't add it last time).. this is right after the global footer code I pasted above -->


        <script type="text/javascript"> var _gaq = _gaq || []; _gaq.push(['_setAccount', 'UA-xxxxxxx-1']); _gaq.push(['_trackPageview']); (function() { var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true; ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js'; var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s); })(); </script> <script type="text/javascript"> function recordOutboundLink(link, category, action) { try { var pageTracker=_gat._getTracker("UA-1432689-1"); pageTracker._trackEvent(category, action); setTimeout('document.location = "' + link.href + '"', 100) }catch(err){} } </script>

        Comment

        Working...
        X