Latest 2.9.8
Homepage https://github.com/at-internet/atinternet-apple-sdk
License MIT
Platforms ios 8.0, requires ARC
Frameworks CoreData, CoreFoundation, WatchKit, UIKit, SystemConfiguration, CoreTelephony

AT Internet Apple SDK

The AT Internet tag allows you to follow your users activity throughout your application’s lifecycle.
To help you, the tag makes available classes (helpers) enabling the quick implementation of tracking for different application events (screen loads, gestures, video plays…)

Requirements

iOS 8.0+ or tvOS 9.0+ or watchOS 2.0
Swift 4.0
For Swift 3.0, please use v2.6.1

Supported devices :

  • iPhone
  • iPad
  • Apple TV
  • Apple Watch
  • App Extension supported (you may need a different pod to avoid module conflicts, see below)

How to get started

  • Install our library on your project (see below)
  • Check out the documentation page for an overview of the functionalities and code examples. Note that this repository is refered as SDK 2.5+

What’s new

  • We reworked how RichMedia and the refresh cycle works. We improved the sendPlay() method and added resume().More info here
  • Static framework support added for Cocoapods. It works well for Swift Apps but the ObjC integration seems unstable.
  • GDPR : ATInternet.OptOut , ATInternet.preventICloudSync , ATInternet.databasePath

SmartTracker iOS

SmartTracker makes it quick and easy to track your mobile app performance. Using a single line of code, tag your app just by navigating through its content in our simple tagging interface available at livetagging.atinternet-solutions.com. Update and correct your tags in just minutes, and your changes will be pushed to users’ phones in real time: You’ll no longer need to resubmit to app stores and hope users update each time you edit your tagging. The feature is still experimental, if you need any help don’t hesitate to submit an issue.

Integration

Find the integration information by following this link

Installation with CocoaPods

CocoaPods is a dependency manager which automates and simplifies the process of using 3rd-party libraries in your projects.

Podfile

  • iOS application :
target 'MyProject' do
pod "ATInternet-Apple-SDK/Tracker",">=2.0"
use_frameworks!
end
  • tvOS application :
target 'MyProject' do
pod "ATInternet-Apple-SDK/tvOSTracker",">=2.0"
use_frameworks!
end
  • watchOS application :
target 'MyProject' do
pod "ATInternet-Apple-SDK/watchOSTracker",">=2.0"
use_frameworks!
end
  • SmartTracker (iOS only) :
target 'MyProject' do
pod "ATInternet-Apple-SDK/SmartTracker",">=2.0"
use_frameworks!
end
  • App Extension :

target 'MyProject App Extension' do
#pod "ATInternet-Apple-SDK/TrackerExtension",">=2.0" this works but if you need both iOS and AppExtension, you need an another pod to avoid module conflicts
pod "ATInternet-Apple-SDK-TrackerExtension",">=2.0"
use_frameworks!
end

Installation with Carthage

Carthage is an alternative to Cocoapods. It’s a simple dependency manager for Mac and iOS, created by a group of developers from Github.

Carthage

https://developers.atinternet-solutions.com/apple-universal-fr/bien-commencer-apple-universal-fr/integration-de-la-bibliotheque-swift-apple-universal-fr/#utilisation-de-carthage_7

Integration samples

Tracker

// AppDelegate.swift
import Tracker
let trackerDelegate = DefaultTrackerDelegate() // weak var !

let tracker: Tracker = ATInternet.sharedInstance.defaultTracker
tracker.setSiteId(410501, sync: true, completionHandler: nil) // required
tracker.setLog("logp", sync: true, completionHandler: nil) // required
// tracker.enableDebugger = true // track the hit sent
// tracker.delegate = trackerDelegate // verbose mode
tracker.screens.add().sendView() // send a screen hit

SmartTracker / LiveTagging

// AppDelegate.swift
import Tracker

let tracker: AutoTracker = ATInternet.sharedInstance.defaultTracker
tracker.setSiteId(410501, sync: true, completionHandler: nil)
tracker.setLog("logp", sync: true, completionHandler: nil)
tracker.token = "xxx-xxx-xxx"
tracker.enableLiveTagging = true // Allow you to pair with the LiveTagging interface

SmartTracker / AutoTracker

// AppDelegate.swift
import Tracker

let tracker: AutoTracker = ATInternet.sharedInstance.defaultTracker
tracker.setSiteId(410501, sync: true, completionHandler: nil)
tracker.setLog("logp", sync: true, completionHandler: nil)
tracker.token = "xxx-xxx-xxx"
tracker.enableAutoTracking = true // start sending hit automatically

License

MIT

Latest podspec

{
    "name": "ATInternet-Apple-SDK-AppExtension",
    "version": "2.9.8",
    "summary": "AT Internet mobile analytics solution for iOS App Extension",
    "homepage": "https://github.com/at-internet/atinternet-apple-sdk",
    "documentation_url": "http://developers.atinternet-solutions.com/apple-en/getting-started-apple-en/operating-principle-apple-en/",
    "license": "MIT",
    "authors": "AT Internet",
    "requires_arc": true,
    "source": {
        "git": "https://github.com/at-internet/atinternet-apple-sdk.git",
        "tag": "2.9.8"
    },
    "module_name": "TrackerExtension",
    "static_framework": true,
    "pod_target_xcconfig": {
        "OTHER_SWIFT_FLAGS": "-DAT_EXTENSION"
    },
    "source_files": "ATInternetTracker/Sources/*.{h,m,swift}",
    "exclude_files": [
        "ATInternetTracker/Sources/BackgroundTask.swift",
        "ATInternetTracker/Sources/Debugger.swift",
        "ATInternetTracker/Sources/TrackerTests-Bridging-Header.h",
        "ATInternetTracker/Sources/UIApplicationContext.swift",
        "ATInternetTracker/Sources/UIViewControllerContext.swift",
        "ATInternetTracker/Sources/SmartTrackerConfiguration.swift",
        "ATInternetTracker/Sources/EventManager.swift",
        "ATInternetTracker/Sources/GestureEvent.swift",
        "ATInternetTracker/Sources/GestureOperation.swift",
        "ATInternetTracker/Sources/PanEvent.swift",
        "ATInternetTracker/Sources/PinchEvent.swift",
        "ATInternetTracker/Sources/RefreshEvent.swift",
        "ATInternetTracker/Sources/RotationEvent.swift",
        "ATInternetTracker/Sources/ScreenEvent.swift",
        "ATInternetTracker/Sources/ScreenOperation.swift",
        "ATInternetTracker/Sources/ScreenRotationEvent.swift",
        "ATInternetTracker/Sources/ScreenRotationOperation.swift",
        "ATInternetTracker/Sources/DeviceRotationEvent.swift",
        "ATInternetTracker/Sources/ScreenshotEvent.swift",
        "ATInternetTracker/Sources/ScrollEvent.swift",
        "ATInternetTracker/Sources/SwipeEvent.swift",
        "ATInternetTracker/Sources/TapEvent.swift",
        "ATInternetTracker/Sources/ApiS3.swift",
        "ATInternetTracker/Sources/ConnectedState.swift",
        "ATInternetTracker/Sources/DisconnectedState.swift",
        "ATInternetTracker/Sources/LiveManager.swift",
        "ATInternetTracker/Sources/Messages.swift",
        "ATInternetTracker/Sources/PendingState.swift",
        "ATInternetTracker/Sources/SocketEvents.swift",
        "ATInternetTracker/Sources/SocketSender.swift",
        "ATInternetTracker/Sources/IgnoredViews.swift",
        "ATInternetTracker/Sources/SmartPopUp.swift",
        "ATInternetTracker/Sources/SmartToolbar.swift",
        "ATInternetTracker/Sources/NSObjectExtension.swift",
        "ATInternetTracker/Sources/UIApplicationExtension.swift",
        "ATInternetTracker/Sources/UIImageExtension.swift",
        "ATInternetTracker/Sources/UIRefreshControlExtension.swift",
        "ATInternetTracker/Sources/UISwitchExtension.swift",
        "ATInternetTracker/Sources/UIViewControllerExtension.swift",
        "ATInternetTracker/Sources/UIViewExtension.swift",
        "ATInternetTracker/Sources/*.ttf",
        "ATInternetTracker/Sources/App.swift",
        "ATInternetTracker/Sources/Rotator.swift",
        "ATInternetTracker/Sources/View.swift",
        "ATInternetTracker/Sources/ATGestureRecognizer.m",
        "ATInternetTracker/Sources/ATGestureRecognizer.h",
        "ATInternetTracker/Sources/SmartTracker.h",
        "ATInternetTracker/Sources/tvOSTracker.h",
        "ATInternetTracker/Sources/watchOSTracker.h",
        "ATInternetTracker/Sources/UILabelExtension.swift",
        "ATInternetTracker/Sources/EventFactory.swift",
        "ATInternetTracker/Sources/Sockets.swift",
        "ATInternetTracker/Sources/JRSwizzle.h",
        "ATInternetTracker/Sources/JRSwizzle.m",
        "ATInternetTracker/Sources/KLCPopup.h",
        "ATInternetTracker/Sources/KLCPopup.m",
        "ATInternetTracker/Sources/SocketAckEmitter.swift",
        "ATInternetTracker/Sources/SocketAckManager.swift",
        "ATInternetTracker/Sources/SocketAnyEvent.swift",
        "ATInternetTracker/Sources/SocketClientManager.swift",
        "ATInternetTracker/Sources/SocketEngine.swift",
        "ATInternetTracker/Sources/SocketEngineClient.swift",
        "ATInternetTracker/Sources/SocketEnginePacketType.swift",
        "ATInternetTracker/Sources/SocketEnginePollable.swift",
        "ATInternetTracker/Sources/SocketEngineSpec.swift",
        "ATInternetTracker/Sources/SocketEngineWebsocket.swift",
        "ATInternetTracker/Sources/SocketEventHandler.swift",
        "ATInternetTracker/Sources/SocketExtensions.swift",
        "ATInternetTracker/Sources/SocketIOClient.swift",
        "ATInternetTracker/Sources/SocketIOClientConfiguration.swift",
        "ATInternetTracker/Sources/SocketIOClientOption.swift",
        "ATInternetTracker/Sources/SocketIOClientSpec.swift",
        "ATInternetTracker/Sources/SocketIOClientStatus.swift",
        "ATInternetTracker/Sources/SocketLogger.swift",
        "ATInternetTracker/Sources/SocketPacket.swift",
        "ATInternetTracker/Sources/SocketParsable.swift",
        "ATInternetTracker/Sources/SocketStringReader.swift",
        "ATInternetTracker/Sources/SocketTypes.swift",
        "ATInternetTracker/Sources/SSLSecurity.swift",
        "ATInternetTracker/Sources/WebSocket.swift",
        "ATInternetTracker/Sources/Compression.swift",
        "ATInternetTracker/Sources/zlib/*"
    ],
    "frameworks": [
        "CoreData",
        "CoreFoundation",
        "WatchKit",
        "UIKit",
        "SystemConfiguration",
        "CoreTelephony"
    ],
    "platforms": {
        "ios": "8.0"
    },
    "resources": [
        "ATInternetTracker/Sources/*.{plist,json}",
        "ATInternetTracker/Sources/TrackerBundle.bundle"
    ],
    "swift_version": "4.1"
}

Pin It on Pinterest

Share This