We work with targeted visitors

Published on July 11, 2008

We work with targeted visitors

    Who are the targeted site visitors? These are users interested in the information posted on the site, potential customers of goods and / or services. Separating targeted website visitors from random ones is quite simple. The target visitor, as a rule, comes on request from a search engine.

    Therefore, I came up with one great idea. If a user accessed a blog from a search engine, you can easily find out by what request he came and show him such a hint, for example:
    You have reached this page for: lists CSS horizontal drop-down menu .
    Do you like the article? Subscribe to RSS!

    Why is this needed? There are at least 5 reasons.

    1. Sometimes, going to an interesting site / blog just by a search query, the user is distracted by other elements that are interesting to him and sometimes already forgets why he went to this site. Therefore, such an inscription will be for him a little clue.

    2. More often than not, finding or not finding the information you need on the blog, the visitor immediately closes the page, but the author no longer knows whether the user really found what he was looking for. Therefore, an invitation to comment on an article will help us find out if this information is sufficient in the article, or the user has not found what he was looking for.

    3. Instead of an invitation to comment on an article, you can make a small form with the question “Did the article help you find the information you are interested in?” And several answer options “Yes”, “A bit”, “No”. These data can be associated with the rating of the article. For example, the answer “Yes” - 5 points, “Little” - 3 points, “No” - 1 point.

    4. Even if the visitor did not find what he was looking for, an invitation to subscribe to RSS will not be superfluous.

    5. Staying on the site of the target visitor is especially important for us. The more we are interested in him, the more chances are that he will become our regular visitor or, at least, an RSS reader, which is also important.

    According to the statistics of my blog, the majority of target users come on requests from Google and partially from Yandex. Therefore, for the blog, I wrote code that collects requests from only these two systems. You can use it on your blog or website.
    PHP code:
    < ? $se=getenv("HTTP_REFERER");
    if (strstr($se,"q=") or strstr($se,"&text=")):
    while (ereg(′%([0-9A-F]{2})′,$se)):
    $val=ereg_replace(′.*%([0-9A-F]{2}).*′,′\1′,$se);
    $newval=chr(hexdec($val));
    $se=str_replace(′%′.$val,$newval,$se);
    endwhile;
    if (strstr($se,"q=")) //Google
    $text_pos = strpos($se,"q=")+2;
    elseif (strstr($se,"&text=")) // Yandex
    $text_pos = strpos($se,"&text=")+6;
    $text_pos_amp = strpos($se,"&",$text_pos);
    $se = str_replace("+"," ",substr($se,$text_pos,($text_pos_amp-$text_pos)));
    ?>
    Вы зашли на эту страницу по запросу: < ?=$se;? >.
    Понравилась статья? Подпишитесь на RSS или оставьте ваш комментарий.
    < ? endif; ? >

    CSS:
    .se_request {background:#FEE2E2; padding:7px; color:#FF3300; width:95%; margin-bottom:10px; border:dashed 1px #FF3300;}

    The code may not be perfect, so I will be glad to any of your corrections :)

    Cross-post