Modules@robinpath/google-analytics

@robinpath/google-analytics

0.1.0Public

Google Analytics module for RobinPath.

@robinpath/google-analytics

Google Analytics module for RobinPath.

Category Functions Auth License

Why use this module?

The google-analytics module lets you:

  • runReport
  • runRealtimeReport
  • batchRunReports
  • runPivotReport
  • getMetadata

All functions are callable directly from RobinPath scripts with a simple, consistent API.

Installation

npm install @robinpath/google-analytics

Quick Start

1. Set up credentials

google-analytics.setCredentials "your-credentials"

2. runReport

google-analytics.runReport

Available Functions

FunctionDescription
google-analytics.setCredentialsConfigure google-analytics credentials.
google-analytics.runReportrunReport
google-analytics.runRealtimeReportrunRealtimeReport
google-analytics.batchRunReportsbatchRunReports
google-analytics.runPivotReportrunPivotReport
google-analytics.getMetadatagetMetadata
google-analytics.listPropertieslistProperties
google-analytics.getPropertygetProperty
google-analytics.listAccountslistAccounts
google-analytics.getActiveUsersgetActiveUsers
google-analytics.getPageViewsgetPageViews
google-analytics.getTopPagesgetTopPages
google-analytics.getTrafficSourcesgetTrafficSources
google-analytics.getUserDemographicsgetUserDemographics
google-analytics.getConversionsgetConversions

Examples

runReport

google-analytics.runReport

runRealtimeReport

google-analytics.runRealtimeReport

batchRunReports

google-analytics.batchRunReports

Integration with RobinPath

import { RobinPath } from "@wiredwp/robinpath";
import Module from "@robinpath/google-analytics";

const rp = new RobinPath();
rp.registerModule(Module.name, Module.functions);
rp.registerModuleMeta(Module.name, Module.functionMetadata);

const result = await rp.executeScript(`
  google-analytics.setCredentials "your-credentials"
  google-analytics.runReport
`);

Full API Reference

See MODULE.md for complete documentation including all parameters, return types, error handling, and advanced examples.

Related Modules

License

MIT

Versions (1)

VersionTagPublished
0.1.0latestyesterday
Install
$ robinpath install @robinpath/google-analytics
Version0.1.0
LicenseMIT
Unpacked Size4.2 KB
Versions1
Weekly Downloads0
Total Downloads0
Stars0
Last Publishyesterday
Createdyesterday

Category

productivity