Skip to content

EDTSTracker is a simple iOS SDK which can track any event and activities that happen in client side.

License

Notifications You must be signed in to change notification settings

elevenia/edts-tracker-ios

Repository files navigation

EDTSTracker

EDTSTracker is a simple iOS SDK which can track any event and activities that happen in client side. It's pure Swift library and easy to use.

Features

  • Page view event tracking.
  • Page detail event tracking.
  • User impression tracking.
  • App activity tracking.
  • Click link event tracking.
  • Filter sort tracking.
  • Filter value tracking.
  • Event Submission tracking.
  • Error report tracking.
  • Backend data tracking.
  • Customizable event tracking.
  • HTTP Header X-API-Key support.
  • HTTP Header Authorization support.
  • Swift 5 support.

How To Use

Firstly is you need to configure your URL Host, token, and HTTP header type you want to use.

import EDTSTracker

EDTSTracking.sharedInstance.configure(host: [YOUR_URL_HOST], token: [YOUR_TOKEN], headerType: [HTTP_HEADER_TYPE]) //.xAPIKey or .authorization
EDTSTracking.sharedInstance.synchronizeTrackingData()

EDTSTracker will send pending tracking data through synchronizeTrackingData() method after you configure your URL host, token, and HTTP header type. And then you can simply call method to send tracking data.

Page View Event Tracking

EDTSTracking.sharedInstance.sendEventPageView(name: [EVENT_NAME])

Page Detail Event Tracking

EDTSTracking.sharedInstance.sendEventPageDetail(name: [EVENT_NAME], details: [EVENT_DATA])

User Impression Tracking

EDTSTracking.sharedInstance.sendEventImpression(name: [EVENT_NAME], impressions: [LIST_DATA])

App Activity Tracking

EDTSTracking.sharedInstance.sendEventAppActivity(name: [EVENT_NAME])

Click Link Event Tracking

EDTSTracking.sharedInstance.sendEventClickLink(name: [EVENT_NAME])

Filter Sort Tracking

EDTSTracking.sharedInstance.sendEventFilterSort(name: [EVENT_NAME], sort: [SORT_DATA])

Filter Value Tracking

EDTSTracking.sharedInstance.sendEventFilterValue(name: [EVENT_NAME], list: [LIST_DATA])

Event Submission Tracking

EDTSTracking.sharedInstance.sendEventSubmission(name: [EVENT_NAME], status: [EVENT_STATUS], failed: [FAILED_MESSAGE])

Error Report Tracking

EDTSTracking.sharedInstance.sendEventError(exception: [ERROR_EXCEPTION], stackTrace: [STACK_TRACE])

Backend Data Tracking

EDTSTracking.sharedInstance.sendEventBackendData(name: [EVENT_NAME], eventDetails: [EVENT_DETAIL], details: [EVENT_DATA])

Customizable Event Tracking

EDTSTracking.sharedInstance.sendEventCustom(name: [EVENT_NAME], eventDetails: [EVENT_DETAIL])

Installation

For installation is recomended using Cocoapods.

CocoaPods

target 'MyApp' do
  pod 'EDTSTracker'
end

Other

EDTSTracker is released under company SG-EDTS. For futher information please kindly visit our website https://sg-edts.com or send email to [email protected] .

Copyrights © 2022 All Rights Reserved by EDTS