Skip to content
This repository was archived by the owner on Sep 19, 2023. It is now read-only.

Commit 73aca08

Browse files
authored
fix: remove v1beta1 to nodejs-analytics-data
This reverts commit ffe0395.
1 parent 3724c67 commit 73aca08

21 files changed

Lines changed: 278 additions & 24124 deletions

README.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,15 +64,17 @@ npm install @google-analytics/data
6464
// propertyId = 'YOUR-GA4-PROPERTY-ID';
6565

6666
// Imports the Google Analytics Data API client library.
67-
const {BetaAnalyticsDataClient} = require('@google-analytics/data');
67+
const {AlphaAnalyticsDataClient} = require('@google-analytics/data');
6868

6969
// Creates a client.
70-
const analyticsDataClient = new BetaAnalyticsDataClient();
70+
const analyticsDataClient = new AlphaAnalyticsDataClient();
7171

7272
// Runs a simple report.
7373
async function runReport() {
7474
const [response] = await analyticsDataClient.runReport({
75-
property: `properties/${propertyId}`,
75+
entity: {
76+
propertyId: propertyId,
77+
},
7678
dateRanges: [
7779
{
7880
startDate: '2020-03-31',

0 commit comments

Comments
 (0)