panorama software,virtual tour software
Alternate Text
Joined: 2008-12-23
Send Msg:
Posts: 142
2014-11-11
#1

Auto Direct Page Need Help

Is it possible to make it so I put a bit of delay between the auto direct page and the flash/html5 page?  The problem I have is that since the auto direct page redirects so quickly some of the time my website analytics is unable to capture all the necessary information.  So although I may show the traffic after it reaches my flash/html5 page the information about where the user came from and other important web statical infomation is gone. I am guessing it has to do with adding some code to the bolded area below.  Any help would be great. I need this valuable info.


var _url="";
var isPC = getBrowser().pc;
if(isPC == "pc"){
_url="flash/sample_virtualtour.html";
}
else{
_url="sample_virtualtour.html";
}
window.location.href=_url;



interactive360
Alternate Text
Joined: 2008-12-23
Send Msg:
Posts: 142
2014-11-11
#2

I actually found a solution right after posting my question.  Now that I found a solution Easypano is there a way to incorporate this directly into the code so we don't have to add it every time?  The delay could be very minimum, but it would allow us to adjust it if we need to.  Thanks


So right at the very end of the javascript coding you need to switch out this line of code with the new code below.


old code:


window.location.href=_url;


switch to:


setTimeout(function() {
   window.location.href=_url;
}, 1000);        //1,000 milliseconds = 1 second


interactive360