score:0

Accepted answer

json.parse expects a json string, not an url you need to load the data yourself i.e. using xmlhttprequest. despite the fact that gavalues is undefined, you also need to access object keys containing special characters using the following notation:

gavalues["ga:sessions"]

score:0

you are trying to parse url in your code at line var gavalues = json.parse(url); the json.parse() method parses a string as json. you need to pass your response as parameter not url.


Related Query

More Query from same tag