Physical Address
304 North Cardinal St.
Dorchester Center, MA 02124
Physical Address
304 North Cardinal St.
Dorchester Center, MA 02124
If you work in WordPress and need to show the message for the user who comes from Google search to can convert this user as lead or display newsletter popup.
This code snippet will let you display custom message to user who detected form google search by using HTTP_REFERER variable with PHP where it’s an optional HTTP header field which is linked to the page being requested.
Steps to detect user from google search:
if (strpos($_SERVER[HTTP_REFERER], "google") == true) { // Your Message Here }