scratch that niche!

Capturing search queries from Google and Yahoo using PHP

In the world of online lead generation, it’s really important to understand where your lead sources come from, particularly if they originate from a search engine query. In the code snippet below, I show you how to use PHP to discretely unpack an incoming request and figure out if it is Google or Yahoo, and if so, how to isolate the original search engine query the user entered.

$referer_string = $_SERVER['HTTP_REFERER'];
$uri = explode('?',$referer_string);
$args = explode('&',$uri[1]);

foreach ($args as $v){
	$items = array();
	$items = explode('=',$v);
	if ($items[0] == 'q' or $items[0] == 'p'){
		#we have some kind of query string from google or yahoo!
               #could also use regular variable or cookie!
		$_SESSION['search_string'] = $items[1];
	}
}

Join us for a FREE event: Word of Mouth Marketing meets Lead Generation

We’re doing a free Teleseminar on June 21st, 1pm Central on word-of-mouth marketing and lead generation.

Sign up now, we still have room!

Take a Lesson from the Pet Stores

Playing the lead generation game means dealing with folks who are window shopping. All they’re doing is downloading your white paper or tip sheet and trying to figure out who you are and what you do. They’re at the very beginning of their quest for understanding or decision-making.

How can we do a better job of speeding up some of that decision making? Simple. Take a page from the pet store owners. What do they do? They put the puppies in the window. There you are walking along the street with your kid and you pass a pet store. In the window is a pile of fuzzy, wiggling, yawning, squirming cute little puppies. This movement and cuteness factor draws you into the store.

You as the parent are probably not wanting a new puppy, but your kid is enthralled. What does the sales clerk do? Take a puppy out of the pile, of course, and in no time, your whole family is interacting with a little fuzzy love monster that’s licking fingers and getting its belly petted.

Whether you like it or not, the path of least resistance is to get the puppy, because now everyone is completely in love with this little creature.

Movement in the window gets your attention, cuteness gets you in the door, interaction and closeness closes the deal. What can you do in your business to make something like this happen?

« Previous Page