From d3263d9ddc7e2eec64b529cb50d16587997fa85c Mon Sep 17 00:00:00 2001 From: Sergey Burykin Date: Thu, 17 Dec 2020 15:46:20 +0300 Subject: [PATCH] added google analytics test connection --- handlers/destinations.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/handlers/destinations.go b/handlers/destinations.go index 09de9f9c8..fff047714 100644 --- a/handlers/destinations.go +++ b/handlers/destinations.go @@ -130,6 +130,12 @@ func testConnection(config *storages.DestinationConfig) error { defer gcp.Close() } } + return nil + case storages.GoogleAnalyticsType: + if err := config.GoogleAnalytics.Validate(); err != nil { + return err + } + return nil default: return errors.New("unsupported destination type " + config.Type)