All Projects → soffes → Mixpanel

soffes / Mixpanel

Licence: mit
Unofficial Swift Mixpanel client

Programming Languages

swift
15916 projects

Projects that are alternatives of or similar to Mixpanel

Functionkit
A framework for functional types and operations designed to fit naturally into Swift.
Stars: ✭ 302 (+224.73%)
Mutual labels:  tvos, watchos, carthage
Swiftframeworktemplate
A template for new Swift iOS / macOS / tvOS / watchOS Framework project ready with travis-ci, cocoapods, Carthage, SwiftPM and a Readme file
Stars: ✭ 527 (+466.67%)
Mutual labels:  tvos, watchos, carthage
Crypto
Swift CommonCrypto wrapper
Stars: ✭ 328 (+252.69%)
Mutual labels:  tvos, watchos, carthage
Datez
📆 Breeze through Date, DateComponents, and TimeInterval with Swift!
Stars: ✭ 254 (+173.12%)
Mutual labels:  tvos, watchos, carthage
Ratelimit
Simple utility for only executing code every so often.
Stars: ✭ 918 (+887.1%)
Mutual labels:  tvos, watchos, carthage
X
Easier cross platform Mac & iOS development with Swift
Stars: ✭ 270 (+190.32%)
Mutual labels:  tvos, watchos, carthage
Json
Micro framework for easily parsing JSON in Swift with rich error messages in less than 100 lines of code
Stars: ✭ 395 (+324.73%)
Mutual labels:  tvos, watchos, carthage
BlockiesSwift
Unique blocky identicons generator for Swift
Stars: ✭ 53 (-43.01%)
Mutual labels:  tvos, watchos, carthage
Commoncrypto
CommonCrypto Swift module
Stars: ✭ 87 (-6.45%)
Mutual labels:  tvos, watchos, carthage
Rome
Carthage cache for S3, Minio, Ceph, Google Storage, Artifactory and many others
Stars: ✭ 724 (+678.49%)
Mutual labels:  tvos, watchos, carthage
clevertap-ios-sdk
CleverTap iOS SDK
Stars: ✭ 39 (-58.06%)
Mutual labels:  tvos, watchos, carthage
Swiftyattributes
A Swifty API for attributed strings
Stars: ✭ 1,303 (+1301.08%)
Mutual labels:  tvos, watchos, carthage
SwiftVer
Easily Manage Versioning in MacOS, iOS, watchOS, and tvOS projects.
Stars: ✭ 23 (-75.27%)
Mutual labels:  tvos, watchos, carthage
Web3.swift
A pure swift Ethereum Web3 library
Stars: ✭ 295 (+217.2%)
Mutual labels:  tvos, watchos, carthage
TermiNetwork
🌏 A zero-dependency networking solution for building modern and secure iOS, watchOS, macOS and tvOS applications.
Stars: ✭ 80 (-13.98%)
Mutual labels:  tvos, watchos, carthage
Xcglogger
A debug log framework for use in Swift projects. Allows you to log details to the console (and optionally a file), just like you would have with NSLog() or print(), but with additional information, such as the date, function name, filename and line number.
Stars: ✭ 3,710 (+3889.25%)
Mutual labels:  tvos, watchos, carthage
Mechanica
A cross-platform library of Swift utils to ease your iOS | macOS | watchOS | tvOS and Linux development.
Stars: ✭ 27 (-70.97%)
Mutual labels:  tvos, watchos, carthage
Columbus
A feature-rich country picker for iOS, tvOS and watchOS.
Stars: ✭ 23 (-75.27%)
Mutual labels:  tvos, watchos, carthage
Guitar
A Cross-Platform String and Regular Expression Library written in Swift.
Stars: ✭ 641 (+589.25%)
Mutual labels:  tvos, watchos, carthage
Queuer
Queuer is a queue manager, built on top of OperationQueue and Dispatch (aka GCD).
Stars: ✭ 964 (+936.56%)
Mutual labels:  tvos, watchos, carthage

Mixpanel

Version Swift Version Carthage compatible

Unofficial Mixpanel client written in Swift 4.2 for iOS and Mac.

This is a very simple client that just implements tracking events and identifying the current user. A network request is initiated whenver you call track. If it fails, nothing happens. Eventually, it would be cool if it stored these and retried at some point.

Installation

Carthage is the recommended way to install Mixpanel. Add the following to your Cartfile:

github "soffes/Mixpanel"

Usage

import Mixpanel

// Setup a client
let mixpanel = Mixpanel(token: "your app token")

// Identify the current user. This doesn't make a network request. It simply
// will add their identifer to the next event tracked.
mixpanel.identify("7")

// Track an event
mixpanel.track("Launch")

// Track an event with parameters
mixpanel.track("Share", parameters: [
  "service": "Twitter",
])

// You can also customize the time the event happened and add a completion
// handler if you want.
mixpanel.track("Import photo", parameters: [
  "source": "Photo library"
], time: someTime, completion: (success) in {
  println("Tracked event successfully: \(success)")
})

Enjoy.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].