Detect user from Google

Give a special greeting to the users that found your WordPress site at Google. Put this snippet where you want the message to be…

Code Snippet:

<?php
if (strpos($_SERVER&#91;HTTP_REFERER&#93;, "google") == true) {
    echo "Hello Google User!";
}
?>

Posted in Social