Add Google analytics to Tourwiever
I have been asked to add this code to virtual tour :
"<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-39297877-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>"
I added this code in the notepad of the published html file. Is that ok or i need to add it somehow before i publish the file ?
Also i read that easypano has not developed a plug-in to fully operate the traction within the virtual tour like krpano http://www.krpano.com/plugins/userplugins/googleanalytics/#top.
Is there any better solution you can advise to me ?
Thank you for your valuable time !!
harlock