Edit in GitHubLog an issue

Migrating to AEPAnalytics reference

This document is a reference comparison of AEPAnalytics (3.x) APIs against their equivalent ACPAnalytics (2.x) APIs.

The AEPAnalytics extension is implemented purely in Swift and is compatible with the AEPCore Swift SDK. To ensure a smooth transition from the ACPAnalytics SDK, there are no major changes on the API names or definition. For more details, follow the migration guide below for your Swift or Objective-C mobile application. If explanation beyond showing API differences is necessary, it will be captured as an info hint within that API's section.

AEPAnalytics classes

TypeAEP 3.x (Swift)AEP 3.x (Objective-C)ACP 2.x (Objective-C)
Primary Class
Analytics
AEPMobileAnalytics
ACPAnalytics

AEPAnalytics APIs

clearQueue

Copied to your clipboard
static func clearQueue()

extensionVersion

Copied to your clipboard
static var extensionVersion: String

getQueueSize

Copied to your clipboard
static func getQueueSize(completion: @escaping (Int, Error?) -> Void)

getTrackingIdentifier

Copied to your clipboard
static func getTrackingIdentifier(completion: @escaping (String?, Error?) -> Void)

getVisitorIdentifier

Copied to your clipboard
static func getVisitorIdentifier(completion: @escaping (String?, Error?) -> Void)

sendQueuedHits

Copied to your clipboard
static func sendQueuedHits()

setVisitorIdentifier

Copied to your clipboard
static func setVisitorIdentifier(visitorIdentifier: String)
Was this helpful?
  • Privacy
  • Terms of Use
  • Do not sell or share my personal information
  • AdChoices
Copyright © 2024 Adobe. All rights reserved.