Google Analytics Embed API Query in Javascript
- or -
Post a project like this1923
£30(approx. $42)
- Posted:
- Proposals: 3
- Remote
- #940228
- Awarded
Description
Experience Level: Intermediate
General information for the website: Want to create a query for the google analytics embed api in javascript
Description of requirements/features: Want to create a query for the google analytics embed api in javascript which queries multiple dates and then stores the results as variables. As an example I have the below:
function drawKpis(ids) {
query({
'ids': ids,
'metrics': 'ga:sessions,ga:transactionRevenue',
'start-date': '2014-10-29',
'end-date': '2014-10-29'
})
list of dates
dates = [2014-10-29,2014-9-29,2014-5-29,2014-3-29]
then store the result of each query as a variable eg.
var 2014-10-29 = x
var 2014-10-29 = y
var 2014-10-29 = j
Extra notes:
Description of requirements/features: Want to create a query for the google analytics embed api in javascript which queries multiple dates and then stores the results as variables. As an example I have the below:
function drawKpis(ids) {
query({
'ids': ids,
'metrics': 'ga:sessions,ga:transactionRevenue',
'start-date': '2014-10-29',
'end-date': '2014-10-29'
})
list of dates
dates = [2014-10-29,2014-9-29,2014-5-29,2014-3-29]
then store the result of each query as a variable eg.
var 2014-10-29 = x
var 2014-10-29 = y
var 2014-10-29 = j
Extra notes:

Dan P.
100% (35)Projects Completed
28
Freelancers worked with
23
Projects awarded
29%
Last project
25 Mar 2019
United Kingdom
New Proposal
Login to your account and send a proposal now to get this project.
Log inClarification Board Ask a Question
-
There are no clarification messages.
We use cookies to improve your experience and our services. By using PeoplePerHour, you agree to ourCookie Policy