p

package module
v0.0.0-...-7e824b3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 13, 2025 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package p contains a Google Analytics for Firebase Cloud Function.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HelloAnalytics

func HelloAnalytics(ctx context.Context, e AnalyticsEvent) error

HelloAnalytics handles Firebase Mobile Analytics log events.

Types

type AnalyticsEvent

type AnalyticsEvent struct {
	EventDimensions []EventDimensions `json:"eventDim"`
	UserDimensions  interface{}       `json:"userDim"`
}

AnalyticsEvent is the payload of an Analytics log event.

type EventDimensions

type EventDimensions struct {
	Name                    string      `json:"name"`
	Date                    string      `json:"date"`
	TimestampMicros         string      `json:"timestampMicros"`
	PreviousTimestampMicros string      `json:"previousTimestampMicros"`
	Params                  interface{} `json:"params"`
}

EventDimensions holds Analytics event dimensions.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL