Entries for the ‘SEO Tools’ Category

Google Analytics Keyword Filter Parsing Tool

Posted by admin on Mon (04/06/09) at 2:06 pm

if(!function_exists('htmlspecialchars_decode')) {
function htmlspecialchars_decode($text) {
return strtr($text, array_flip(get_html_translation_table(HTML_SPECIALCHARS)));
}
}

if(isset($_POST['parsevar']))
$parsevar = $_POST['parsevar'];
else $parsevar = '';

//echo urldecode($parsevar);
// convert html specials
//$parsevar2 = urldecode ($parsevar);

$matches = array();

preg_match_all('(\([a-z(\.|\-|\,|\;|\/|\:|\$|\'|\@)*A-Z(\+)?%0-90-9?]*)',str_replace('"','',$parsevar),$matches);
//print_r($matches);

$parseoutarray = array();
$parseoutput = '';

foreach($matches as $match) {
foreach($match as $mac) {
array_push($parseoutarray,$mac);
}
}
//sort($parseoutarray);
foreach($parseoutarray as $pout) {
$parseoutput .= trim(str_replace("@",'',str_replace("'",'',str_replace('"','',str_replace(',',' ',urldecode(str_replace('+',' ',str_replace(')','',str_replace('(','',$pout))))))))) . "\n";
}

?>


GOOGLE ANALYTICS EXPORT


PARSED OUTPUT