Implementing Amplitude analytics in a macOS app

April 20, 2020

I've been moving towards Amplitude for analytics in my personal apps, since it seems to have the best user experience and easiest itegration vs Google Analytics and Mixpanel (plus, it has a free tier!), but I only recently implemented analytics in a macOS app. It was a bit tough to figure out how to pull in Amplitude, since (as far as I can tell) their documentation is iOS-specific. If you try to install the Amplitude-iOS pod in a Mac app, you're going to have a bad time.

Luckily they're publishing another podspec which correctly sets the macOS deployment target. Integrating Amplitude into your project is as easy as:

pod 'Amplitude'

(This post isn't sponsored by Amplitude, it's just the best solution I've found for tracking usage of my personal apps.)

Picture of me with a corgi

Noah Gilmore

Hello! I'm Noah, a software developer based in the San Francisco bay area. I focus mainly on iOS, Apple platform development, and full stack web development.

  • 💻 I'm writing a macOS editor for Atlassian Confluence called Fluency
  • 📱 I wrote an app which lets you create transparent app icons called Transparent App Icons
  • 🧩 I made a puzzle game for iPhone and iPad called Trestle
  • 🎨 I wrote a CoreImage filter utility app for iOS developers called CIFilter.io
  • 👋 Please feel free to reach out on Twitter