Skip to content

Commit

Permalink
Add premium flag to app start metric
Browse files Browse the repository at this point in the history
  • Loading branch information
azeier committed Apr 28, 2018
1 parent 544cf43 commit fe1347b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions Hearthstone Deck Tracker/Core.cs
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,7 @@ public static async void Initialize()
Helper.GetCurrentVersion(),
newUser,
HSReplayNetOAuth.IsFullyAuthenticated,
HSReplayNetOAuth.AccountData?.IsPremium?.Equals("true", StringComparison.InvariantCultureIgnoreCase) ?? false,
(int)(DateTime.UtcNow - _startUpTime).TotalSeconds,
PluginManager.Instance.Plugins.Count
);
Expand Down
3 changes: 2 additions & 1 deletion Hearthstone Deck Tracker/Utility/Analytics/Influx.cs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ internal class Influx
private static DateTime? _lastMainWindowActivation;
private static DateTime _oAuthInitiated;

public static void OnAppStart(Version version, bool isNew, bool authenticated, int startupDuration, int numPlugins)
public static void OnAppStart(Version version, bool isNew, bool authenticated, bool premium, int startupDuration, int numPlugins)
{
if(!Config.Instance.GoogleAnalytics)
return;
Expand All @@ -33,6 +33,7 @@ public static void OnAppStart(Version version, bool isNew, bool authenticated, i
.Tag("version", version.ToVersionString(true))
.Tag("new", isNew)
.Tag("authenticated", authenticated)
.Tag("premium", premium)
.Tag("collection_syncing", Config.Instance.SyncCollection)
.Tag("collections_uploaded", Account.Instance.CollectionState.Count)
.Tag("auto_upload", Config.Instance.HsReplayAutoUpload)
Expand Down

0 comments on commit fe1347b

Please sign in to comment.