Real Time Dashboard - using the REST API 1.4 - How to use segmentation | Community
Skip to main content
December 14, 2015
Solved

Real Time Dashboard - using the REST API 1.4 - How to use segmentation

  • December 14, 2015
  • 1 reply
  • 872 views

Hi All,

I am started working with real-time dashboards using the 1.4 REST API.

I can use the "basic" stuff - but when i try to search for specific pages or the server variable i get into trouble.

Can anyone tell me what is wrong here:

                                                                                        
var method ='Report.Run';
  
 var params = {
 "reportDescription":{
 "source": "realtime",
 "reportSuiteID": config.reportSuite,
 "dateFrom": "-60 minutes",
 "dateGranularity": "minute:1",
 "metrics": [
 { "id": "pageviews" }
 ], "elements": [
 { "id": "page","top":"20"}
 ],
 "segments": [
 {
 "element": "page",
 "selected": ["/DA/"]
 }
 ],
 }
  
 };

...alternatively how i select a specific value for the variable server...pls help me in the right direction.

/Peter

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by ryanpraski

Hi Peter,

Check out this example and see if the code helps under:

//Multiple elements with search 

Best,

Ryan

1 reply

ryanpraski
ryanpraskiAccepted solution
Level 4
December 16, 2015

Hi Peter,

Check out this example and see if the code helps under:

//Multiple elements with search 

Best,

Ryan