Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Eliot Akira

    (@miyarakira)

    Unfortunately, it’s not possible with this plugin. The closest it can do is to redirect visitors who are not logged in.

    It’s an interesting question, so I looked into it. The difficulty is, there is not a reliable method for distinguishing first-time and returning visitors.

    Here is a plugin which shows a message for first-time visitors: What would Seth Godin do

    It stores the visit status in a cookie. The problem with this is that cookies can expire over time, and be disabled/deleted by the user.

    Thread Starter alaskanbob

    (@alaskanbob)

    Thank you Eliot. Not quite what I was looking (hoping) for. I’ll re-think how I want to offer different landing pages for new and returning visitors.

    Thread Starter alaskanbob

    (@alaskanbob)

    I didn’t find a plugin but I found this bit of code that I put in header.php that does the trick

    <?php
    if(!isset($_COOKIE['been_here'])){
        $two_months = 60 * 60 * 24 * 60 + time();
        setcookie('been_here', true, $two_months);
        header('Location: /a-r-k.us/us/sample-page/');
    //change /a-r-k.us/us/sample-page to your desired location for 1st timers
    }
    ?>

    See it in action here http://alaskanbest.com/a-r-k.us/

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘First time or returning visitors’ is closed to new replies.