gacli

package
v0.27.1 Latest Latest
Warning

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

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

Documentation

Overview

Package gacli is a client for Google Analytics to send data points for hint-type=event.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

Client is an analytics client.

func New

func New(id string) *Client

New creates a new analytics client for Segment.io with Segment's endpoint and access key.

func (*Client) Send

func (c *Client) Send(metric Metric) error

Send sends metrics to GA.

type Metric

type Metric struct {
	Category string
	Action   string
	Label    string
	Value    string
	User     string
	Version  string
}

Metric represents a data point.

Jump to

Keyboard shortcuts

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