Skip to content

Commit

Permalink
Fixed conversion goal return type.
Browse files Browse the repository at this point in the history
  • Loading branch information
Kugelschieber committed Apr 29, 2022
1 parent 818a814 commit 860a7eb
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 8 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## 1.6.1

* fixed conversion goal return type

## 1.6.0

* added hourly visitor statistics, listing events, os and browser versions
Expand Down
23 changes: 15 additions & 8 deletions types.go
Original file line number Diff line number Diff line change
Expand Up @@ -212,14 +212,21 @@ type ExitStats struct {
type ConversionGoal struct {
BaseEntity

DomainID string `json:"domain_id"`
Name string `json:"name"`
PathPattern string `json:"path_pattern"`
Pattern string `json:"pattern"`
VisitorGoal null.Int64 `json:"visitor_goal"`
CRGoal null.Float64 `json:"cr_goal"`
DeleteReached bool `json:"delete_reached"`
EmailReached bool `json:"email_reached"`
PageGoal struct {
DomainID string `json:"domain_id"`
Name string `json:"name"`
PathPattern string `json:"path_pattern"`
Pattern string `json:"pattern"`
VisitorGoal null.Int64 `json:"visitor_goal"`
CRGoal null.Float64 `json:"cr_goal"`
DeleteReached bool `json:"delete_reached"`
EmailReached bool `json:"email_reached"`
} `json:"page_goal"`
Stats struct {
Visitors int `json:"visitors"`
Views int `json:"views"`
CR float64 `json:"cr"`
} `json:"stats"`
}

// EventStats is the result type for custom events.
Expand Down

0 comments on commit 860a7eb

Please sign in to comment.