wpf 从 .NET 桌面应用程序使用 Google Analytics
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/16217894/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Using Google Analytics from a .NET desktop application
提问by Uri Abramson
Is it possible to send "PageViews" and record activity using the official Google API for C#? for instance, if i want to track page views for my wpf/winforms desktop app. ?
是否可以使用 C# 的官方 Google API 发送“PageViews”并记录活动?例如,如果我想跟踪 wpf/winforms 桌面应用程序的页面浏览量。?
Where can i find some oficial examples?
我在哪里可以找到一些官方示例?
回答by Lee Oades
I've just downloaded "Garlic" and tried the sample app and it works a treat!
我刚刚下载了“Garlic”并试用了示例应用程序,效果很好!
回答by Vidas Vasiliauskas
Disclaimer: I am the author for Gappalytics
免责声明:我是 Gappalytics 的作者
I think one missing here is Gappalyticsfor code/UI event tracking, it is a very simple library which unlocks you a full potential of Google analytics.
我认为这里缺少一个用于代码/UI 事件跟踪的Gappalytics,它是一个非常简单的库,可以让您充分发挥 Google 分析的潜力。
It works better than mentioned before lib's because it can persist uniqueness of a user this way your data will not be skewed.
它比之前提到的 lib 更好,因为它可以保留用户的唯一性,这样您的数据就不会出现偏差。
回答by Obsidian
Google just released the Windows SDKfor Google Analytics. It works with UWP, Xamarin, Windows Forms, and WPF.
Google 刚刚发布了用于 Google Analytics的Windows SDK。它适用于 UWP、Xamarin、Windows 窗体和 WPF.
The official announcementwas made at the most recent Windows Developer Day on Feb 8th, 2017.
官方公告是在 2017 年 2 月 8 日最近的 Windows 开发者日上发布的。

