[278,321] -->
Drupal healthcare module automatic paypal payment processing using php and cron
Aug 05

This code will help you extract urls from google analytics account with analytics API by Felix Geisendörfer
// Start Code for getting the URLs

$pages = $this->Analytics->report(array(
‘profile’ => ‘PROFILE_NAME’,
‘report’ => ‘TopContent’,
‘trows’ => ‘500′
));
foreach ($pages[’AnalyticsReport’][’Report’][’Table’][’Row’] as $pages_individual):
$pages_urls[$pages_individual[’Key’][’#text’]] = $pages_individual[’Key’][’#text’];
endforeach;
$this->set(’pages_urls’,$pages_urls);

//End Code for getting URLs

2 Responses to “extract urls from google analytics”

  1. Rakesh Muraharishetty Says:

    Just a quick reminder that this uses cakephp

  2. Edmundo. Says:

    Thanks for the code!

Leave a Reply