Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Tracker ¶
type Tracker struct {
// TrackingID is the tracking id for the Google Analytics property that you
// want to track pageview events for. This value can be found in your
// Google Analytics dashboard.
// Example: "UA-123456789-1"
TrackingID string
// PropertyName is the name for the Google Analytics property that you want
// to track pageview events for. This can be found in your Google Analytics
// dashboard.
// Example: "example.com"
PropertyName string
// DryRun is used to disable reporting pageview events.
DryRun bool
// Handler is a http handler that is "wrapped" by the Tracker and actually
// processes the client requests. The original request, as well as the
// response generated by the handler is used to extract analytics data.
Handler http.Handler
}
Click to show internal directories.
Click to hide internal directories.