Analytics
2.5K members online now
Understand information in your reports and troubleshoot reporting issues such as self-referrals, (not set) data, and inaccurate information
 
Guide Me
star_border
Reply

Real time top active pages

[ Edited ]
Visitor ✭ ✭ ✭
# 1
Visitor ✭ ✭ ✭

I am trying to get top active pages data and I have used query explorer and tried with code but  the data I am getting is incorrect.

Code:

 

$service = liveht_social_google_analytics_service_initiate();
$results = $service->data_realtime->get(
'ga:11XXXXXX',
'rt:activeUsers',
array(
'dimensions' => 'rtSmiley TongueageTitle,rtSmiley TongueagePath',
'max-results' => 5,

'sort' => '-rt:activeUsers',
)
);

 

Any help ??