analytics

package
v0.0.0-...-74038fe Latest Latest
Warning

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

Go to latest
Published: Oct 3, 2023 License: Apache-2.0 Imports: 9 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

View Source
var GAResponseJSONObject []GAResponseJSON

GAResponseJSONObject is the array of GAResponse struct

Functions

func Handler

func Handler()

Handler is responsible for the looping the UpdateAnalyticsData()

func UpdateAnalyticsData

func UpdateAnalyticsData() error

UpdateAnalyticsData sends the GET request to the GA instance and receives the events' metrics at every t time intervals and updates the global JSON object for containing the response

Types

type GAResponseJSON

type GAResponseJSON struct {
	Label string
	Count string
}

GAResponseJSON is the global entity which defines the structure for holding the GA data

Jump to

Keyboard shortcuts

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