I'm trying to use Btbuckets to show a modal box to all new subscribers, only on the first page they visit. I don't want to show it on subsequent page views (or to returning visitors). That would be hidious to the visitor experience. I have tried to make this work, but with no succes.
I have tried to make a bucket with these settings:
Viewed a page at least
0 time(s) containing
/ in the
Address
and notViewed a page at least
1
time(s) containing
/ in the Address
It doesn't work.
I guess I could create a 'hack' creating two new targets with these settings:
Viewed a page at least
1 time(s) containing
/ in the
Address
And fill these with an html comments (opening and closing tags) to comment out the modal box section of the code. Like this:
span class="start-tag">script
type=
"text/javascript">
$BTB.execCallback("comment-begin");
$BTB.execCallback("modalbox");
$BTB.execCallback("comment-end");
</script>
This results in the 'modalbox' target being called on the first visit. And on subsequent visits it results in:
span class="start-tag">script
type=
"text/javascript">
<!--
(Modalbox code)
-->
</script>
Commenting out the modalbox. It works. But is a ugly workaround.
I hope anyone can help me with a better solution.
Daan Walraven.