Anyone made a new HTML5 Google Analytics Plugin?

  • Hi,

    Just thought I'd check to see if anyone has made a new HTML5 Google Analytics Plugin? I see the original one is for sale but I don't want to waste endless time trying to troubleshoot with no support from owner.

    Please get in touch if you have one for sale *wink*


    Thanks,

    Andrew

  • What is it you need exactly? Isn't it something you can do easily with a bit of javascript?

    In your html:

    Code
    <script>
      (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
      (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
      m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
      })(window,document,'script','//www.google-analytics.com/analytics.js','ga');
    
    
      ga('create', 'UA-XXXXXXX-1', 'auto');
      ga('send', 'pageview');
    </script>

    In your xml:

    Code
    <events onxmlcomplete=" js(ga('send','pageview', get(xml.scene) );" />
    
    
    <hotspot onclick="js(ga('send','event', 'popup', 'open'));" />

    If you need swfadress like deeplinking, look at the new 1.19 pre version. It has a example if you generate a virtual tour

    You need ExternalInterface present (so online without javascript blocking)

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!