@google-analytics/data
Advanced tools
Comparing version 2.3.0 to 2.4.0
# Changelog | ||
## [2.4.0](https://www.github.com/googleapis/nodejs-analytics-data/compare/v2.3.0...v2.4.0) (2021-04-02) | ||
### Features | ||
* add `kind` field which is used to distinguish between response types feat: add `potentially_thresholded_requests_per_hour` field to `PropertyQuota` ([#85](https://www.github.com/googleapis/nodejs-analytics-data/issues/85)) ([00b1d04](https://www.github.com/googleapis/nodejs-analytics-data/commit/00b1d04b34e737d3b68ab9e14fe7949106680ac2)) | ||
## [2.3.0](https://www.github.com/googleapis/nodejs-analytics-data/compare/v2.2.1...v2.3.0) (2021-03-11) | ||
@@ -4,0 +11,0 @@ |
{ | ||
"name": "@google-analytics/data", | ||
"version": "2.3.0", | ||
"version": "2.4.0", | ||
"description": "Data client for Node.js", | ||
@@ -5,0 +5,0 @@ "repository": "googleapis/nodejs-analytics-data", |
@@ -61,4 +61,4 @@ [//]: # "This README.md file is auto-generated, all changes to this file will be lost." | ||
/** | ||
* TODO(developer): Uncomment this variable and replace with your GA4 | ||
* property ID before running the sample. | ||
* TODO(developer): Uncomment this variable and replace with your | ||
* Google Analytics 4 property ID before running the sample. | ||
*/ | ||
@@ -70,3 +70,4 @@ // propertyId = 'YOUR-GA4-PROPERTY-ID'; | ||
// Creates a client. | ||
// Using a default constructor instructs the client to use the credentials | ||
// specified in GOOGLE_APPLICATION_CREDENTIALS environment variable. | ||
const analyticsDataClient = new BetaAnalyticsDataClient(); | ||
@@ -77,5 +78,3 @@ | ||
const [response] = await analyticsDataClient.runReport({ | ||
entity: { | ||
propertyId: propertyId, | ||
}, | ||
property: `properties/${propertyId}`, | ||
dateRanges: [ | ||
@@ -118,2 +117,3 @@ { | ||
| Quickstart | [source code](https://github.com/googleapis/nodejs-analytics-data/blob/master/samples/quickstart.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-analytics-data&page=editor&open_in_editor=samples/quickstart.js,samples/README.md) | | ||
| Quickstart_json_credentials | [source code](https://github.com/googleapis/nodejs-analytics-data/blob/master/samples/quickstart_json_credentials.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-analytics-data&page=editor&open_in_editor=samples/quickstart_json_credentials.js,samples/README.md) | | ||
| Quickstart_oauth2 | [source code](https://github.com/googleapis/nodejs-analytics-data/blob/master/samples/quickstart_oauth2.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-analytics-data&page=editor&open_in_editor=samples/quickstart_oauth2.js,samples/README.md) | | ||
@@ -120,0 +120,0 @@ | Realtime | [source code](https://github.com/googleapis/nodejs-analytics-data/blob/master/samples/realtime.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-analytics-data&page=editor&open_in_editor=samples/realtime.js,samples/README.md) | |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
3464918
52819