Swiftpack.co - kkla320/Tracking as Swift Package

Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
A simple Interface for analysing app usage
.package(url: "https://github.com/kkla320/Tracking.git", from: "0.3.0")



This package contains a unified API for analytics purposes.


To install the analytics framework just add this line to the dependencies section in the Package.swift

.package(url: "https://github.com/kkla320/Tracking.git", from: "0.3.0")

After that you just need to add the package as a depency in the corresponding target.

    name: "myProject",
    dependencies: [

How to use

First you have to import the framework

import Tracking

At the start of your app, you have to initialize the Analytics system

let myAnalyticsHandler = // ...
let myAnalyticsFilter = // ...

Analytics.bootstrap([myAnalyticsHandler], filters: [myAnalyticsFilter])

The you can just call the shared instance of Analytics

let myEvent = // ...
Analytics.shared.log(event: myEvent)


Stars: 0
Last commit: 2 weeks ago

Ad: Job Offers

iOS Software Engineer @ Perry Street Software
Perry Street Software is Jack’d and SCRUFF. We are two of the world’s largest gay, bi, trans and queer social dating apps on iOS and Android. Our brands reach more than 20 million members worldwide so members can connect, meet and express themselves on a platform that prioritizes privacy and security. We invest heavily into SwiftUI and using Swift Packages to modularize the codebase.

Submit a free job ad (while I'm testing this). The analytics numbers for this website are here.

Release Notes

17 weeks ago
  • Added a license

Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics