SimpleGoogleAnalytics is fairly simple way to use Google Analytics on OSX. We use it for the new version of Plug.
Thanks to Coppertio's AnalyticEverything for most of the system profiling code.
let tracker = SimpleGoogleAnalytics.Manager(trackingID: "UA-XXXXXXXX-X", appBundle: NSBundle.main, userID: nil)
tracker.trackPageview("Main Window")
tracker.trackEvent(category: "Button", action: "Click", label: "Sign In", value: nil)
tracker.trackException(description: "Exception", fatal: true)
github "PlugForMac/SimpleGoogleAnalytics" ~> VERSION_NUMBER
Please create an issue if you'd like CocoaPods support.