🌎 #1 tracking tool in the world! 🌎
CocoaPods is a dependency manager for Cocoa projects. For usage and installation instructions, visit their website. To integrate EriaitsevTracker into your Xcode project using CocoaPods, specify it in your Podfile
:
pod 'EriaitsevTracker'
Carthage is a decentralized dependency manager that builds your dependencies and provides you with binary frameworks. To integrate EriaitsevTracker into your Xcode project using Carthage, specify it in your Cartfile
:
github "victoryanvc/EriaitsevTracker"
The Swift Package Manager is a tool for automating the distribution of Swift code and is integrated into the swift
compiler.
Once you have your Swift package set up, adding EriaitsevTracker as a dependency is as easy as adding it to the dependencies
value of your Package.swift
.
dependencies: [
.package(url: "https://github.com/victoryanvc/EriaitsevTracker.git")
]
If you prefer not to use any of the aforementioned dependency managers, you can integrate EriaitsevTracker into your project manually.
To use this library in your project manually you may:
- for Projects, just drag EriaitsevTracker.swift to the project tree
- for Workspaces, include the whole EriaitsevTracker.xcodeproj
Create an EriaitsevEvent
by passing a dictionary with the desired attributes to be tracked.
Call track(params:)
with the event to track it.
let params = ["name": "bob"]
let event = Event(params: params)
EriaitsevTracker.shared.track(event)
That's it! 🌸
The console should print if the tracking was successful or not, with the given event.