Hi Sampath,
It is because you are not calling your javascript functions.The alert shows your
strWsUrl
as it is.So, you can do something like this.Call two of your
javascript
functions like below
function getVaria(){
var strWsUrl = 'https://www.googleapis.com/analytics/v3/data/ga?ids=ga%3A76546294&dimensions=ga%3Asource&metrics=ga%3Ausers&filters=ga%3Asource!%3D(direct)&sort=-ga%3Ausers&start-date= '+ retStartDate() + '&end-date=' + retEndDate() + '&max-results=10';
alert(strWsUrl);
return strWsUrl;
}
Hope this help :-)