Google Maps API driving times for specific dates and times - google-maps-api-3

Does google maps have an API that will estimate driving times for a specific dates and times?

This is Distancematrix
readmore here Javascript API:
https://developers.google.com/maps/documentation/javascript/distancematrix
DEMO JAVASCRIPT API:
https://developers.google.com/maps/documentation/javascript/examples/distance-matrix
WEB SERVICE
https://developers.google.com/maps/documentation/distancematrix/

Related

Google Analytics 4 API - Missing dateHourMinutes

It looks like Google Analytics 4 API doesn't offer reporting to the minutes. The closest I can see in the Query Explorer is Date + Hour.
Is there a way to obtain data accurate to the minutes with GA4 reporting API?
One workaround could be to capture the hit timestamp as a custom dimension. Here's an example: https://www.simoahava.com/analytics/improve-data-collection-with-four-custom-dimensions/#4-hit-timestamp
Note that link I shared sets up a custom dimension for Universal Analytics, not GA4. So for GA4 you would need to capture it as an event parameter and then create the custom dimension in the GA4 interface.
Alternatively, you could enable the export to BigQuery and the following field is provided in the schema: event_timestamp
Google Analytics 4 Data API added three new dimensions today: dateHourMinute, minute, and nthMinute. This page lists all dimensions and metrics available in the API.
These dimensions are compatible with some but not all other dimensions and metrics. For example, minute is compatible with eventCount and activeUsers, but minute is not compatible with newUsers. We're adding a new API method to show which dimensions and metrics are compatible with other dimensions and metrics.
Thanks,
Brett
The Google Analytics Team
Not sure if there is a workaround but GA have said in April that they plan to add dateHourMinutes to GA4 API.

How to obtain UA metrics data from Google Analytics Data API (GA4)

I've faced a comparability problem while migrating from Reporting API V4 to Data API V1 (Beta). Some old (UA) metrics became not available.
Several of them are computable at client side.
For example:
avgSessionDuration(ga:avgSessionDuration) = userEngagementDuration(ga:sessionDuration) / sessions(ga:sessions)
pageViewsPerSession(ga:pageviewsPerSession) = screenPageViews(ga:pageviews) / sessions(ga:sessions)
The question is: How to obtain equivalent data for listed below UA metrics using Data API V1?
ga:uniquePageviews
ga:avgTimeOnPage
Universal analytics and GA4 are two totally different systems your not going to be able to convert a report. You need to make new reports designed for GA4.
GA4 does not have uniquePageviews or avgTimeOnPage
You should check API Dimensions & Metrics to find the current list of dimensions and metrics available with Ga4.
Remember Ga4 is Event based not page view based.
It seems to be available. check this page for GA4 equivalents:
https://developers.google.com/analytics/devguides/reporting/data/v1/migration-api-schema-mapping
Im getting the data succesfully by using:
Dimension: fullPageUrl
Metrics: eventCount, userEngagementDuration

ASP.NET Map API with Weather Overlay?

We use Google Maps API and they had a weather layer which they "sunsetted." So it's no longer available - how can I add weather to Google Maps or is there another map API we can use in our asp.net site that shows KML data for routing information and also weather?
Thank you
For Bing Maps, many developers have used various weather API's to bring this data in. Here are a few worth looking into:
https://alastaira.wordpress.com/2011/05/13/displaying-weather-and-traffic-conditions-in-bing-maps/
http://nowcoast.noaa.gov/help/mapservices.shtml?name=mapservices
http://www.wunderground.com/weather/api/
http://datamarket.azure.com/browse/data?category=weather

Universal Google Analytics - grab some statistics to your own site

I am looking for a way, how can I grab some statistics from Google Universal Analytics to my site? Is there any way to display users statistics on site, grabbing from Analytics like below?
Example:
Users today: 10
Week: 70
Month:270
Total: 1500
I found a couple of information from Google, but was not suitable to this topic. All finding results were about old Google Analytics( without upgrading to Universal) and were displaying all statistic results, including Charts.
You can us the Google analytics API to get the stats you are looking for. You will probably end up doing 3 different requests, because of the fact that the request is made by dates. You will have a problem getting the correct count for Today and yesterday, because the Google Analytics data hasn't finished processing yet it normally takes 24 - 48 hours for the numbers to be correct.
Becouse of the fact that you are only looking to see your own data I recommend you look into using service account for authentication.

Google analytics custom variable, key appears correctly, value does not

Implemented a filter on a webservice to make gif calls to GA for tracking method calls.
During initial testing I set a custom variable that contained account information. But for some reason, after a few weeks the variable stopped coming through to standard reporting correctly.
A test gif url:
http://www.google-analytics.com/__utm.gif?utmwv=4.4sj
&utmn=230567348
&utmhn=localhost
&utmr=-
&utmp=http%3A%2F%2Flocalhost%2Fv2svrmng%2FServiceManagerV2
&utmac=UA-12345678-9
&utmcc=__utma%3D999.999.999.999.999.1%3B
&utmvid=0x6ffa39da7d6bd0c7
&utmip=127.0.0.0
&utme=8(Account)9(testaccount-99999)11(2)
The Account key seems to be read correctly but the testaccount-99999 value appears as (A
Is some sort of weird truncation occurring here?
The gif request is not a supported or documented API. You can only use it with the javascript library provided or other google libraries that communicate with Google Analytics.
The good news is that Universal Analytics is a new update to Google Analytics (currently in Public Beta) and it has a documented protocol to send data to GA using server side code like you want.
Read more about it and how to get into the Beta here:
https://developers.google.com/analytics/devguides/collection/protocol/v1/

Resources