We need to pass the current page to Retrieving page data from GAS web service we need to figure out what page we are on. Since gadgets run in an Iframe, document.referrer will be pointing to the current page. Passing this will cause a JSONP response with the stats for that page.