Skip to content

Commit

Permalink
Fix analytic information
Browse files Browse the repository at this point in the history
  • Loading branch information
BlythMeister committed Mar 9, 2022
1 parent 40aa2bb commit 47f7233
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/Gallifrey/AppTracking/TrackUsage.cs
Original file line number Diff line number Diff line change
Expand Up @@ -56,15 +56,13 @@ public async void TrackAppUsage(TrackingType trackingType)

private PageView GetPageView(TrackingType trackingType)
{
var source = "Gallifrey";

return new PageView
{
DocumentTitle = trackingType.ToString(),
DocumentLocationUrl = $"https://releases.gallifreyapp.co.uk/tracking/{trackingType}",
CampaignSource = source,
CampaignMedium = instanceType.ToString(),
CampaignName = versionControl.DeployedVersion.ToString(),
CampaignSource = instanceType.ToString(),
CampaignMedium = $"{versionControl.DeployedVersion.Major}.{versionControl.DeployedVersion.Minor}.{versionControl.DeployedVersion.Build}",
CampaignName = $"{versionControl.DeployedVersion.Major}.{versionControl.DeployedVersion.Minor}.{versionControl.DeployedVersion.Build}.{versionControl.DeployedVersion.Revision}",
UserId = settingsCollection.InstallationHash,
UserLanguage = CultureInfo.InstalledUICulture.NativeName
};
Expand Down

0 comments on commit 47f7233

Please sign in to comment.