Skip to content

journifyio/journify-ios-sdk

Journify

SwiftPM Compatible

JournifySDK is a Swift library for integrating event tracking and analytics into your iOS application. It provides an easy-to-use interface for developers to add similar functionality to their projects.

Installation

JournifySDK is available through SPM

Swift Package Manager (SPM)

To add JournifySDK via Swift Package Mangaer:

Xcode

Xcode Add SPM Package

Screenshot 2023-02-09 at 5 14 10 PM

Screenshot 2023-02-09 at 5 14 37 PM

Note: Journify recommends that you use Xcode to add your package.

CocoaPods

JournifySDK is also available through CocoaPods.

To integrate JournifySDK into your Xcode project using CocoaPods, follow these steps:

  1. Add the following line to your Podfile:
pod 'JournifySDK', '~> 0.1.7'
  1. Then run:
pod install
  1. Open the .xcworkspace file generated by CocoaPods.

  2. Import the SDK in your code:

import JournifySDK

Alternative: Install via GitHub Link

If you prefer to fetch the SDK directly from GitHub, update your Podfile:

pod 'JournifySDK', :git => 'https://github.com/journifyio/JournifySDK.git'    

Usage/Examples

 let configuration = Configuration(writeKey: "Your Key")
            .trackApplicationLifecycleEvents(true)
            .flushInterval(10)

Journify.debugLogsEnabled = true //show debug logs
Journify.setup(with: configuration)

Journify.shared().track(name: "New Event", properties: ["Name": "Custom"], externalId: ["testKey": "test"])
Journify.shared().screen(title: "New Screen", properties: ["title": "Growth as a service", "url": "https://journify.io", "path": "/"])

License

MIT

Credits

This SDK was based of Segment Swift SDK https://github.com/segmentio/analytics-swift (Thanks to the Segment team)

About

Journify iOS SDK

Resources

License

Code of conduct

Contributing

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •