Zen Cart Logo
Forums / General Questions / Need help with Exit Pop-up

Need help with Exit Pop-up

Locked

Views: 967

Results 1 to 2 of 2
This thread is locked. New replies are disabled.
19 Mar 2010, 5:43 AM
#1
sevenhelmets avatar

sevenhelmets

New Zenner

Join Date:
Oct 2009
Location:
Tokyo, Japan
Posts:
52
Plugin Contributions:
0

Need help with Exit Pop-up

Hi folks

I wasn't sure which thread to put this in, so I've put it here - mods feel free to move it if necessary.

I'm wanting to add an "exit survey" on my site - a pop-up when a visitor leaves the site. I've found some resources, and I'm using a form generated over at Wufoo, but I can't seem to get the code integrated with the site. Any helpful tips or advice would be MUCH appreciated.

This is what I've got going so far.

on tpl_header.php, near the top, I have inserted this code:

<!--bof-exit survey-->
<script language="javascript">
<!-- begin
function openit(sURL){newwindow=open(sURL,"newwin","height=932, width=680, toolbar=0, location=0, status=1, scrollbars=1,resizable=1'");
// end -->
</script>
<!--eof-exit survey-->

on tpl_main_page.php I have entered the trigger:

<script type="text/javascript">var _sf_startpt=(new Date()).getTime()</script>
<body id="<?php echo $body_id . 'Body'; ?>"<?php if($zv_onload !='') echo ' onload="'.$zv_onload.'"'; ?> [B]onUnload="javascript:openit ('http://MYUNIQUECODE.wufoo.com/forms/RANDOMSTRINGOFNUMBERS/')"[/B]>

the part in **bold **is the new section I added, because all sites recommended inserting it into the <BODY part of the tags.

I've tested it, and nothing happens. What am I missing? Any help would be MUCH MUCH MUCH appreciated!

Thanks!

Seven

30 Mar 2010, 8:47 AM
#2
sevenhelmets avatar

sevenhelmets

New Zenner

Join Date:
Oct 2009
Location:
Tokyo, Japan
Posts:
52
Plugin Contributions:
0

Re: Need help with Exit Pop-up

Anyone....? Bump