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

Latest commit

 

History

History
 
 

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

README.md

Google Cloud Platform logo

Open in Cloud Shell

Table of Contents

Before you begin

Before running the samples, make sure you've followed the steps outlined in Using the client library.

cd samples

npm install

cd ..

Samples

Get Common Metadata

View the source code.

Open in Cloud Shell

Usage:

node samples/getCommonMetadata.js


Get Metadata By Property Id

View the source code.

Open in Cloud Shell

Usage:

node samples/getMetadataByPropertyId.js


Quickstart

View the source code.

Open in Cloud Shell

Usage:

node samples/quickstart.js


Quickstart_json_credentials

View the source code.

Open in Cloud Shell

Usage:

node samples/quickstart_json_credentials.js


Quickstart_oauth2

View the source code.

Open in Cloud Shell

Usage:

node samples/quickstart_oauth2.js


Run Batch Report

View the source code.

Open in Cloud Shell

Usage:

node samples/runBatchReport.js


Run Pivot Report

View the source code.

Open in Cloud Shell

Usage:

node samples/runPivotReport.js


Run Realtime Report

View the source code.

Open in Cloud Shell

Usage:

node samples/runRealtimeReport.js


Run Realtime Report With Multiple Dimensions

View the source code.

Open in Cloud Shell

Usage:

node samples/runRealtimeReportWithMultipleDimensions.js


Run Realtime Report With Multiple Metrics

View the source code.

Open in Cloud Shell

Usage:

node samples/runRealtimeReportWithMultipleMetrics.js


Run Report

View the source code.

Open in Cloud Shell

Usage:

node samples/runReport.js


Run Report With Aggregations

View the source code.

Open in Cloud Shell

Usage:

node samples/runReportWithAggregations.js


Run Report With Cohorts

View the source code.

Open in Cloud Shell

Usage:

node samples/runReportWithCohorts.js


Run Report With Date Ranges

View the source code.

Open in Cloud Shell

Usage:

node samples/runReportWithDateRanges.js


Run Report With Dimension And Metric Filters

View the source code.

Open in Cloud Shell

Usage:

node samples/runReportWithDimensionAndMetricFilters.js


Run Report With Dimension Exclude Filter

View the source code.

Open in Cloud Shell

Usage:

node samples/runReportWithDimensionExcludeFilter.js


Run Report With Dimension Filter

View the source code.

Open in Cloud Shell

Usage:

node samples/runReportWithDimensionFilter.js


Run Report With Dimension In List Filter

View the source code.

Open in Cloud Shell

Usage:

node samples/runReportWithDimensionInListFilter.js


Run Report With Multiple Dimension Filters

View the source code.

Open in Cloud Shell

Usage:

node samples/runReportWithMultipleDimensionFilters.js


Run Report With Multiple Dimensions

View the source code.

Open in Cloud Shell

Usage:

node samples/runReportWithMultipleDimensions.js


Run Report With Multiple Metrics

View the source code.

Open in Cloud Shell

Usage:

node samples/runReportWithMultipleMetrics.js


Run Report With Named Date Ranges

View the source code.

Open in Cloud Shell

Usage:

node samples/runReportWithNamedDateRanges.js


Run Report With Ordering

View the source code.

Open in Cloud Shell

Usage:

node samples/runReportWithOrdering.js


Run Report With Pagination

View the source code.

Open in Cloud Shell

Usage:

node samples/runReportWithPagination.js


Run Report With Property Quota

View the source code.

Open in Cloud Shell

Usage:

node samples/runReportWithPropertyQuota.js