In the Dashboard of NewRelic RPM I can see a chart named "Browser page load time".
It contains 4 values, what are the metric names for this chart ?
I got a response from their support team:
EndUser/average_app_without_queue_time
EndUser/average_network_time
EndUser/average_page_rendering_time
EndUser/RB/average_dom_content_load_time
But:
the EndUser/ endpoint didn't specify the average_app_without_queue_time metric.
the EndUser/ endpoint didn't specify the average_page_rendering_time metric.
So I miss two metrics of the above four...
I want simply fetch the data represented in the above chart in JSON format via their API.
Those two metrics, “EndUser/average_app_without_queue_time” and “EndUser/average_page_rendering_time”, and not standalone metrics like the other two, they are calculated metrics. This means that they are not going to be available directly from the API and that instead you will need to pull down their constituent parts and perform the calculation. Here are the two formulas:
average_app_without_queue_time = ("EndUser".total_app_time - "EndUser/RB".total_queue_time) / "EndUser".call_count
and
average_page_rendering_time = "EndUser".average_fe_response_time - "EndUser/RB".average_dom_content_load_time
Related
I've followed the Azure Indoor Maps Creator tutorial here but used a python script from another repository here to make it simpler to upload the map files. No PostMan required basically.
The sample wires up a levelchanged event handler and outputs the event data to console. The event's data for facilityId is always FCL13. I cannot find where this data is specified anywhere. Not in the python script, the sample data zipfile manifest.json, nor in the DWG files (with my limited ability to view those).
I assume I should be able to specify which facility I am uploading data for so would either expect the API calls to be provided this (from the python script), or it should be some metadata within the DWG files.
My intention was to upload more than one building's floor maps so need the facilityId to be configurable. Having specific tilesets associated to different facilityIds allows me to know which facility had its level changed during a levelchanged event.
Where is the facilityId data specified for a specific map data upload?
All Ids (facilityId, levelId, unitId, etc.) are generated when you create a dataset. These Ids are not meant to be set manually.
It is possible to list facilityIds loaded in the map, along with their names, address info, etc. that was provided in manifest.json.
Note: It looks like the 'indoorTiles' source lacks the getShapes() method so a workaround is required to query the underlying mapbox.
map._getMap().querySourceFeatures('indoorTiles', {sourceLayer: 'Indoor facility'});
From Mapbox's documentation on querySourceFeatures():
Because features come from tiled vector data or GeoJSON data that is converted to tiles internally, feature geometries may be split or duplicated across tile boundaries and, as a result, features may appear multiple times in query results.
I need help to create a chart of sum multiple sources in Google Data Studio. My sources are:
Google Search Console: Clicks
Google My Business: Phone Calls, Website Visits, and Direction Requests
Problem
The chart is not SUM-ing those numbers. See image below, the green line Combined Actions should be the SUM of all the 4 metrics I mentioned above. FYI I renamed the parameters to help me differentiate:
Site Search Clicks = GSC Clicks
Tebet Phone Calls = GMB Phone Calls
Tebet Website Visits = GMB Website Visits
Tebet Direction Requests = GMB Direction Requests
This is the formula I use
SUM(Clicks+Phone calls+Directions requests+Website visits)
This is the data source
I thought it was the number format that was corrupted, but if that's the case then why the individual chart is shown correctly? I can also draw each individual chart using SUM(Clicks), SUM(Phone calls), etc.
For Your Information, I have another chart in this page that works by summing:
Google Search Console: Impressions
Google My Business: Direct search impressions
So those 2 data metrics are working well.
Any help would be appreciated. Also let me know if you need any more context on this question. Thank you.
The issue is due to having NULL values (if there is no data for a single Metric at a single date in the SUM function, then that entire date row will be displayed as 0 in the Time Series chart); one approach is to incorporate the IFNULL function below which treats NULL values as the numeric literal 0:
SUM(IFNULL(Clicks, 0) + IFNULL(Phone Calls, 0) + IFNULL(Directions Requests, 0) + IFNULL(Website Visits, 0))
Editable Google Data Studio Report (Embedded Google Sheets Data Source) and a GIF to elaborate:
(Data Studio Report - Single source of data: GAnalytics)
A website has, say:
200 pages receiving views.
66 pages receiving all entrances, all sources (Landing Pages).
In data studio, I've created scorecards for both of the above stats.
I now want to create a pie which visually expresses the KPI: "30% of pages are landing pages".
I'm relatively new to Data Studio and think I'm struggling with dimensions v metrics.
As a Scorecard...
I've been able to achieve this as a scorecard (and it was correct), so here's the solution I found:
Create a calculated field with the formula:
COUNT_DISTINCT(Landing Page) / COUNT_DISTINCT(Page)
Add this new calculated metric to a scorecard metric slot, it'll automatically chose percentage to express the result.
Note: The above is using a single data source: Google Analytics (GA).
*** I'll update re the pie chart....
(I've not achieved this with Blended Data - my next quest)
im trying to obtain some demographic data from the google analytics api, my intention is to integrate this on a cms to generate reports, etc... is this possible?
if it is, is there someone who knows a tutorial or something? i have used the examples provided and i get some sessions that have been in the last 7 day period. But nothing besides that. If that is not possible, what kind of things i can obtain with this api?
here is what i have tried:
function getResults(&$analytics, $profileId) {
return $analytics->data_ga->get(
'ga:' . $profileId,
'7daysAgo',
'today',
'ga:sessions');
}
thanks in advance.
You can obtain everything that's listed in the Dimensions and Metrics Reference. This includes ga:userAgeBracket and ga:userGender for demographic information.
To include additional metrics (numerical data) you put it as a parameter where you now have ga:sessions (separate multiple metrics with a comma). You need at least one metric for a query to work.
To add dimensions (i.e. categorical data) you need to pass an options array to your query that has a key/value pair for dimensions. This may also include additional options like filters or sort options, see the example here..
$optParams = array(
'dimensions' => 'ga:userAgeBracket,ga:userGender'
);
return $analytics->data_ga->get(
'ga:' . $profileId,
'7daysAgo',
'today',
'ga:sessions',
$optParams
);
This for version 3 of the API. If you are just getting started an have no legacy code to maintain you might as well start with there current version (v4).
To be able to get age and gender informations from analytics, you should Enable Demographics and Interests reports on your GA account.
doc : https://support.google.com/analytics/answer/2819948
I want to make a search into google patent using the following URL which is obsolete
https://ajax.googleapis.com/ajax/services/search/patent?v=1.0&q=thumb%20wrestling%20apparatus&userip=192.168.1.102
It gives me limited number of records per page.
But at the end of the JSON it also returns the cursor which has start and label keys. So my question is that how can I use that cursor to show all the records in my search. Like if there are 8 pages and each page contains 4 records so I want to show all 32 records on my UI.
How can I achieve that?
And second question that is there REST APi for google patent search? If yes then how can I search the patent using REST API and how can I get all the records on one page?
It looks like the API is restricted to a maximum of 8 results per request (you can increase your current 4 results to 8 by using the query param rsz=8.
So I guess the only way to get all results is by performing multiple requests. So if the current page info data is...
"pages":[
{"start":"0","label":1},
{"start":"8","label":2},
{"start":"16","label":3},
{"start":"24","label":4},
{"start":"32","label":5}
]
You would make 5 requests chaining the start param start=0, start=8 ... and so on, extracting the results and pushing to an array store. If you're not already I recommend using something like Restangular, as it would make this process much easier.
Depending on how your UI is set out, it would be nice maybe to do this with some lazy loading as the user is scrolling through the list?