12345678,
'Blog Name 2' => 12345676,
'Blog Name 3' => 12345675
);
// ---------------------------- END SETTINGS ---------------------- //
?>
Dan's Analytics Page
Today's Referrers. X minutes since refresh
$ga_profile_id)
{
$ga->requestReportData($ga_profile_id,array('source','referralPath','medium'),array('visits'),array('-visits'),null,$today,$today,1,100);
?>
getResults() as $result)
{
$link = $result->getSource();
$path = $result->getReferralPath();
$medium = $result->getMedium();
$visits = $result->getVisits();
if (strpos($link, '.'))
{
$link = 'http://' . $link . $path;
$link = '' . substr($link,0,40) . '';
}
else
{
$link = $link . ' / ' . $path . ' / ' . $medium;
}
if (! isset($aRefTracker))
{
$aRefTracker = array();
}
if (! isset($aRefTracker[$ga_profile_id]))
{
$aRefTracker[$ga_profile_id] = array();
}
// New Referrer?
$new = '';
if (! in_array($link, $aRefTracker[$ga_profile_id]))
{
$new = ' class="new"';
$aRefTracker[$ga_profile_id][] = $link;
}
?>
> |
> |
$ga->requestReportData($ga_profile_id,array('keyword'),array('visits'),array('-visits'),null,$today,$today,1,100);
$total = 0;
foreach($ga->getResults() as $result)
{
$keyword = $result->getKeyword();
$visits = $result->getVisits();
$total += $visits;
if ($keyword == '(not set)') continue;
?>
|
|
Total Visits:
}
$_SESSION["tracker"] = $aRefTracker;
?>