Hi,
I'm trying to get this working (I got from another thread) just to track scene views in my virtual tours. It will only track the html page though (shows up as .../tour.htm in GA) and not the scene views. Anyone got any ideas what I'm doing wrong? Or is there a better way of doing it?
Thanks
M
-------------------------------------------------------------------------
IN HTML
<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','//http://www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-XXXXXXX-1', 'auto');
ga('send', 'pageview');
</script>
IN XML
<events onxmlcomplete=" js(ga('send','pageview', get(xml.scene) );" />
-------------------------------------------------------------------------------------------------------------------------