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.
- 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.
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.
EDTSTracking.sharedInstance.sendEventPageView(name: [EVENT_NAME])
EDTSTracking.sharedInstance.sendEventPageDetail(name: [EVENT_NAME], details: [EVENT_DATA])
EDTSTracking.sharedInstance.sendEventImpression(name: [EVENT_NAME], impressions: [LIST_DATA])
EDTSTracking.sharedInstance.sendEventAppActivity(name: [EVENT_NAME])
EDTSTracking.sharedInstance.sendEventClickLink(name: [EVENT_NAME])
EDTSTracking.sharedInstance.sendEventFilterSort(name: [EVENT_NAME], sort: [SORT_DATA])
EDTSTracking.sharedInstance.sendEventFilterValue(name: [EVENT_NAME], list: [LIST_DATA])
EDTSTracking.sharedInstance.sendEventSubmission(name: [EVENT_NAME], status: [EVENT_STATUS], failed: [FAILED_MESSAGE])
EDTSTracking.sharedInstance.sendEventError(exception: [ERROR_EXCEPTION], stackTrace: [STACK_TRACE])
EDTSTracking.sharedInstance.sendEventBackendData(name: [EVENT_NAME], eventDetails: [EVENT_DETAIL], details: [EVENT_DATA])
EDTSTracking.sharedInstance.sendEventCustom(name: [EVENT_NAME], eventDetails: [EVENT_DETAIL])
For installation is recomended using Cocoapods.
target 'MyApp' do
pod 'EDTSTracker'
end
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