- Before you begin
- Samples
- Get Common Metadata
- Get Metadata By Property Id
- Quickstart
- Quickstart_json_credentials
- Quickstart_oauth2
- Run Batch Report
- Run Pivot Report
- Run Realtime Report
- Run Realtime Report With Multiple Dimensions
- Run Realtime Report With Multiple Metrics
- Run Report
- Run Report With Aggregations
- Run Report With Cohorts
- Run Report With Date Ranges
- Run Report With Dimension And Metric Filters
- Run Report With Dimension Exclude Filter
- Run Report With Dimension Filter
- Run Report With Dimension In List Filter
- Run Report With Multiple Dimension Filters
- Run Report With Multiple Dimensions
- Run Report With Multiple Metrics
- Run Report With Named Date Ranges
- Run Report With Ordering
- Run Report With Pagination
- Run Report With Property Quota
Before running the samples, make sure you've followed the steps outlined in Using the client library.
cd samples
npm install
cd ..
View the source code.
Usage:
node samples/getCommonMetadata.js
View the source code.
Usage:
node samples/getMetadataByPropertyId.js
View the source code.
Usage:
node samples/quickstart.js
View the source code.
Usage:
node samples/quickstart_json_credentials.js
View the source code.
Usage:
node samples/quickstart_oauth2.js
View the source code.
Usage:
node samples/runBatchReport.js
View the source code.
Usage:
node samples/runPivotReport.js
View the source code.
Usage:
node samples/runRealtimeReport.js
View the source code.
Usage:
node samples/runRealtimeReportWithMultipleDimensions.js
View the source code.
Usage:
node samples/runRealtimeReportWithMultipleMetrics.js
View the source code.
Usage:
node samples/runReport.js
View the source code.
Usage:
node samples/runReportWithAggregations.js
View the source code.
Usage:
node samples/runReportWithCohorts.js
View the source code.
Usage:
node samples/runReportWithDateRanges.js
View the source code.
Usage:
node samples/runReportWithDimensionAndMetricFilters.js
View the source code.
Usage:
node samples/runReportWithDimensionExcludeFilter.js
View the source code.
Usage:
node samples/runReportWithDimensionFilter.js
View the source code.
Usage:
node samples/runReportWithDimensionInListFilter.js
View the source code.
Usage:
node samples/runReportWithMultipleDimensionFilters.js
View the source code.
Usage:
node samples/runReportWithMultipleDimensions.js
View the source code.
Usage:
node samples/runReportWithMultipleMetrics.js
View the source code.
Usage:
node samples/runReportWithNamedDateRanges.js
View the source code.
Usage:
node samples/runReportWithOrdering.js
View the source code.
Usage:
node samples/runReportWithPagination.js
View the source code.
Usage:
node samples/runReportWithPropertyQuota.js
