Optimizing the Zango Gateway
- <?php
- //Increment the ‘views’ session variable.
- $_SESSION[‘views’] = $_SESSION[‘views’]+ 1;
- } else {
- $_SESSION[‘views’] = 1;
- }
- //Display Zango on only the first page view.
- if ($_SESSION[‘views’] == 1){
- echo ‘***zango code here***’;
- }
- ?>
If you want to modify the above code you would simply change the == 1 to == 3 for the third page view or > 3 for the 4th, 5th, 6th etc page views.
The reasons you may want to choose when the gateway will be displayed could be one of the following reasons; to make the gateway less annoying by making it display only once, or to have it display after the visitor has already had a taste of your content.
Displaying the gateway only once will help to reduce your bounce rate and increase the amount of return visitors. Having the gateway display after x amount of page views can increase the conversion rate on some sites.

1 Comment
July 24th, 2008 at 12:01 am
Very nice article!
Will come in handy if i ever decide use Zango on my new upcoming websites or wallpaper site
Thanks
Leave a Reply