Crux Page specific data by country? - pagespeed-insights

Using Big Data to browse Crux, there is data on a country level for each origin. Page Speed Insights includes crux data for origin and also for specific pages.
Is there anyway to get a country breakdown for a single page through the Page Speed Insights API?

There is no way to get a country breakdown through Page Speed Insights, either at an origin or at a page level.
However you can query the Chrome User Experience Report Big Data to get this information.
Please note that the field data shown in Page Speed Insights is a rolling 28 day average, updated daily, whereas the CRUX data is updated once per month so you would get differences.

Related

Different field data for different sites, does anyone know why?

I've been working on improving our Core Web Vitals and thought I'd check another site to compare how we're doing.
I've noticed that one website has just the FCP, LCP, FID, CLS visible with a percentage image to represent how far away they are from the next stage. Yet, for our PageSpeed Insights Field Data we are seeing an additional 2 areas with Speed Index and Total Blocking Time, and we don't see the percentage image to help gauge.
Does anyone know how we can get ours to show the 4 main areas too please? I have attached images to show what I mean. Appreciate any help, thank you :)
enter image description hereenter image description here
It sounds like your site's PSI results don't have any field data, and the two additional metrics you're seeing are actually the lab data section. The other website may have more traffic than yours and qualify for inclusion in the public Chrome UX Report dataset, which could explain why they have field data in PSI but your site doesn't.
For example, here's a screenshot of the field and lab data sections:
The field data section resembles your screenshot while the lab data section has additional metrics for SI, TTI, and TBT.
All pages tested in PSI will have lab data but only the pages/origins in the Chrome UX Report will have field data available.
For more info about the difference between lab and field data see https://developers.google.com/web/fundamentals/performance/speed-tools#understanding_lab_vs_field_data

How Can I Filter Based on Metrics in the Bing Ads API?

I'm using the Bing Ads Python SDK and I'm trying to get an ad report showing the cost data for each ad for each day.
I can successfully query the AdPerformanceReportRequest service and get all the ads and their metrics back.
But I'm getting back all ads with any activity on them, including impressions. I only want rows where cost > 0.
The filter objects are specific to the report type, not to the metric and none of the examples in the SDK Github repo show how to do this.
The Google Ads API lets us specify a where clause in our report query (Where cost > 0). How can I do this with the Bing Ads API?
Do I have to download all the data and filter myself (this report is quite large, about 100Mb, and about 75% smaller when filtered)? Or is there a more efficient way to do this by not requesting those rows that are useless to me at all?
Any point in the right direction would be very much appreciated.
Edit: As was pointed out below, this is not currently possible. A tip if you're trying to filter yourself locally is that the metrics in the in-memory report object record is a string. So if you want to filter out zero values, you need to filter out values that are string representations of '0.00', not '0' or the integer value 0.
The reporting service via Bing Ads API does not support such a filter. I suggest please vote on this related feature request and append comments / details about your scenario as needed. Thank you.

Is it possible to get the actual calculated score of a custom ranked feed?

Right now getstream passes down ordinal score but not the actual internal score which makes it difficult to debug. I tried reading the api docs and inspecting the response but don't see anything. I'm also not quite sure how their own internal explorer works. When pressing "preview" the results set is limited and makes fine tuning difficult.
Our API call only returns an integer that orders the items. If you want the actual score, go to your organization's dashboard, click on your app, and click on the name of your ranking under the Ranking Methods header. then click on the "Preview Changes" you will see the ranked feed with the full score based on the ranking algorithm. There's also a search bar there if you want to change the feed and user_id values. I don't know if putting the actual score in the feed is on our roadmap but I can bring it up with the team.

How to embed basic weather report for current time for fixed location in web page?

What I need:
I need to output a basic weather reports based on the current time and a fixed location (a county in the Republic of Ireland).
Output requirements:
Ideally plain text accompanied with a single graphical icon (e.g.
sun behind a cloud etc.).
Option to style output.
No adverts; no logos.
Free of charge.
Numeric Celsius temperature and short textual description.
I appreciate I'm that my expectations are high so interpret the list more as a "wish-list" rather than delusional demands.
What I've tried:
http://www.weather-forecast.com - The parameters for the iframe aren't configurable enough. Output is too bloated.
Google Weather API - I've played with PHP solutions to no avail though in any case, apparently the API is dead: http://thenextweb.com/google/2012/08/28/did-google-just-quietly-kill-private-weather-api/
My question:
Can anyone offer suggestions on how to embed a simple daily weather report based on a fixed location with minimal bloat?
Take a look at http://www.zazar.net/developers/jquery/zweatherfeed/
It's pretty configurable, although I'm not sure if there is still too much info for your needs. I've only tried it with US locations; all you need is a zipcode. The examples show using locations from other countries. I'm assuming it's a similar setup to get locations added for Ireland.

how does google analytics calculate metrics like "average time spent"?

how services like google analytics calculate parameters like
"average time spent"
"number of users that came to the website via search Vs user that hit the url directly
etc.
I would imagine that google can easily record a HIT when someone clicks on a link in serach result. But after that how long and deep the user is brwosing that perticular website is out of tap...hmmmm ?
This question has some information. As mentioned in that question time should be calculated using an onUnload() event. When the js is loaded firstime the time may be recorded (in cookies)and then onUnload() the time spent is calculated and sent to Google for record.
The above question explains most of your question.
This thread states quite clearly that there is no unLoad() event: http://groups.google.com/group/analytics-help-troubleshoot/browse_thread/thread/d142572ddf1fa9dd/38dd640f949e9890?pli=1
Also, try going to GA and look for sessions with only 1 pageview - you will see the average page time is 0s, which proves the point.

Resources