Swiftpack.co -  trackingplan/trackingplan-ios as Swift Package
Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
trackingplan/trackingplan-ios
Trackingplan for iOS SDK
.package(url: "https://github.com/trackingplan/trackingplan-ios.git", from: "1.0.20")

Trackingplan for iOS SDK

With Trackingplan for iOS you can make sure that your tracking is going as you planned without changing your current analytics stack or code.

Trackingplan will monitor traffic between your app and data destinations and automatically detect any changes in your analytics implementation and warn you about inconsistencies like hit drops, missing properties, rogue events, and more.

Trackingplan is currently available for Web, iOS and Android. More clients will come soon.

Please request your TrackingplanId at trackingplan.com or write us directly team@trackingplan.com.

Install the SDK

The recommended way to install Trackingplan for iOS is using Swift Package Manager because it makes it simple to install and upgrade.

First, add the Trackingplan dependency using Xcode, like so:

In Xcode, go to File -> Swift Packages -> Add Package Dependency...

If you are asked to choose the project, please choose the one you want to add Trackingplan to.

In the search box please put https://github.com/trackingplan/trackingplan-ios and click next.

Choose the Version and leave the default selection for the latest version or customize if needed.

Click finish and you will see the library added to the Swift Package Dependencies section.

Then in your application delegate’s - application(_:didFinishLaunchingWithOptions:) method, set up the SDK like so:

//
//  AppDelegate.swift
//  ...

func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
        // Override point for customization after application launch.
        
        // Initialize Trackingplan SDK
        TrackingPlan.initialize(tpId: "#YourTrackingplanId")
        
        return true
}

And of course, import the SDK:

//
//  AppDelegate.swift
//  ...

import TrackingPlan

All set!

Can I install SDK using Cocoapods?

Yes, we also sopport installation using Cocoapods.

First, add the Trackingplan dependency to your Podfile, like so:


pod 'Trackingplan', :git => 'https://github.com/trackingplan/trackingplan-ios.git'

Then in your application delegate’s - application(_:didFinishLaunchingWithOptions:) method, set up the SDK like so:

//
//  AppDelegate.swift
//  ...

func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
        // Override point for customization after application launch.
        
        // Initialize Trackingplan SDK
        TrackingPlan.initialize(tpId: "#YourTrackingplanId")
        
        return true
}

And of course, import the SDK:

//
//  AppDelegate.swift
//  ...

import TrackingPlan

All set!

Need help?

Questions? Problems? Need more info? Contact us, and we can help!

Learn more

Visit www.trackingplan.com.

Copyright © 2021 Trackingplan Inc. All Rights Reserved.

GitHub

link
Stars: 1
Last commit: 6 days 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.

Release Notes

2 weeks ago

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