Javascript ile php'ye istek göndereceksin, php de gidip google analyticsten veriyi çekip sana getirecek. Bu şekilde çalışıyor.
setInterval(function(){
$.ajax({
url: "modules/analytics.php",
cache: false,
dataType:"json",
success: function(jsonData){
$("#seninDiv").html(jsonData.online_users);
}
});
},2000)//her 2 saniyede bir çalıştır