Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

(TC-87) Add real app version to analytics

  • Loading branch information...
jfryman committed May 3, 2017
1 parent fcb4e3a commit 8d17236c125bae3034869f484d3fa26596296525
Showing with 6 additions and 1 deletion.
  1. +1 −1 analytics/ga.go
  2. +5 −0 version/version.go
@@ -35,7 +35,7 @@ func NewScreenView() *ScreenView {
TrackingID: "UA-54263865-7",
Type: "screenview",
ApplicationName: "lumogon",
ApplicationVersion: "0.0.0", // v.VersionString(),
ApplicationVersion: v.VersionString(),
UniqueID: uid,
}
}
@@ -18,3 +18,8 @@ type ClientVersion struct {

// Version constructed at build time
var Version = ClientVersion{BuildVersion, BuildTime, BuildSHA}

// VersionString returns the absolute version (AppVer-SHA)
func (c *ClientVersion) VersionString() string {
return c.BuildVersion + "-" + c.BuildSHA
}

0 comments on commit 8d17236

Please sign in to comment.
You can’t perform that action at this time.