Hi All
I'd like to know if there is a way of running an html file from within krpano. I have a number of clients who are using various third party (not GA) analytics engines whereby they have an analytics javascript in an html file.
For GA I am using the GA plugin that works really well. for example:
<events onloadcomplete="plugin[ga].trackpageview(virtual-tour-name)" />
for the other analytics engines what I want to do is automatically run an html file when a 360 is loaded. The html file would contain something lke:
<!DOCTYPE html>
<html>
<head>
<title>Trek Wireless - Virtual Tour</title>
</head>
<body>
<!-- SiteAnalyse -->
<script type="text/javascript">
/*<![CDATA[*/
(function() {
var sz = document.createElement('script'); sz.type = 'text/javascript'; sz.async = true;
sz.src = '//http://uk1.siteimprove.com/js/siteanalyze_567934.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(sz, s);
})();
/*]]>*/
</script>
</body>
</html>
So I would like something like:
<events onloadcomplete= 'run the above html file' />
Ideas most appreciated.
cheers
Tim