Iluvatar+ Posted April 2, 2012 Share Posted April 2, 2012 Alright guys, just wondering if any of you have actualy used this? I am having trouble trying to use limits in my queries. <?php ... $newThisMonth = $ga->requestReportData(ga_profile_id,array('visitCount','Month'),array('newVisits'),'-newVisits', $max_results='1'; ... ?> Quote Link to comment https://forums.phpfreaks.com/topic/260180-google-analytics-php-api/ Share on other sites More sharing options...
Jessica Posted April 2, 2012 Share Posted April 2, 2012 1. You never close your function call 2. You would define $max_results=1, then send $max_results as the argument. Right now you're either causing a fatal error or sending the success/fail of setting $max_results=1 (which would succeed). I can't remember which would happen. Quote Link to comment https://forums.phpfreaks.com/topic/260180-google-analytics-php-api/#findComment-1333642 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.