From 860a7eb6a41a4c12facbdad3c9c868498403498e Mon Sep 17 00:00:00 2001 From: Marvin Blum Date: Fri, 29 Apr 2022 13:02:30 +0200 Subject: [PATCH] Fixed conversion goal return type. --- CHANGELOG.md | 4 ++++ types.go | 23 +++++++++++++++-------- 2 files changed, 19 insertions(+), 8 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 28f18f0..fa84bcd 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/types.go b/types.go index 87aa944..5c55659 100644 --- a/types.go +++ b/types.go @@ -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.