Home / guest / Detect user from Google
  • How to Detect user from Google


    Adding this PHP code to your wordpress theme will let you display a message to users that found your website via Google.

    ( click code to copy )

    wordpress snippet : PHP

      if (strpos($_SERVER[HTTP_REFERER], "google") == true) {
        echo "Hello Google User!";

    ( WordPress codex functions, hooks, in this snippet. )