Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Ignore ¶
func Ignore(tracker *TrackingParams)
Ignore provides a handler that will hinder all requests from being tracked
Types ¶
type Options ¶
type Options struct { // The URL of your piwik installation (with our without /piwik.php) PiwikURL string // Ignore the Do not Track header that is sent by the browser. This is not recommended IgnoreDoNotTrack bool // The ID of the website in piwik WebsiteID string // The piwik API's access token Token string }
Options configures the piwik middleware
type TrackingParams ¶
type TrackingParams struct { // custom variables that will be assigned to the action (cvar) ActionCVar map[string]string // custom variables that will be assigned to the visitor (_cvar) VisitorCVar map[string]string // when this is set to true, no information will be sent to piwik Ignore bool // contains filtered or unexported fields }
TrackingParams will be injected into the context and can be used to define piwik actions, like an internal search
func FakeTrackingParams ¶
func FakeTrackingParams() *TrackingParams
FakeTrackingParams returns TrackinParams that can be mapped to the macaron instance when piwik should be disabled
func (*TrackingParams) Search ¶
func (t *TrackingParams) Search(keyword string, params ...interface{})
Search notifies piwik about a search done. Params can be: - the number of search results (int) - the catecory of the search (string)
Click to show internal directories.
Click to hide internal directories.