I use Google Analytics for my iOS app and i want to get data about gender and age of my users.
我将谷歌分析用于我的iOS应用程序,我希望获得有关用户性别和年龄的数据。
Here is my code inside AppDelegate's didFinishLaunchingWithOptions
这是我在AppDelegate的didFinishLaunchingWithOptions中的代码
let Tracker = GAI.sharedInstance()
//Add Publisher Track ID
Tracker.trackerWithTrackingId("UA-XXXXXXXX-2")
Tracker.trackUncaughtExceptions = true
Tracker.dispatchInterval = 10
Tracker.logger.logLevel = GAILogLevel.Verbose
let defaultTracker = Tracker.defaultTracker
defaultTracker.allowIDFACollection = true
I added AdSupport.framework and libAdIdAccess.a to my project and enabled age and gender tracking in google analytics settings but still i have no gender/age data and google says that gender/age tracking is enabled but my analytics code needs to be updated to track this data.
我在我的项目中添加了AdSupport.framework和libAdIdAccess.a,并在谷歌分析设置中启用了年龄和性别跟踪,但我仍然没有性别/年龄数据,谷歌表示性别/年龄跟踪已启用,但我的分析代码需要更新为跟踪这些数据。
Maybe i need to use IDFA - I don't know how. What i need to do?
也许我需要使用IDFA - 我不知道如何。我需要做什么?
1 个解决方案
#1
0
Unless the framework or your app has access to the calendar, and/or the primary users date of birth, this won't be possible.
除非框架或您的应用程序可以访问日历和/或主要用户的出生日期,否则这是不可能的。
If anything, I'd suggest looking at the Calendar (EventKit) to get this kind of information.
如果有的话,我建议查看日历(EventKit)以获取此类信息。
Obtaining it any other way would pretty much breach Apple Developer T's and C's
以任何其他方式获取它将几乎违反Apple Developer T和C's
#1
0
Unless the framework or your app has access to the calendar, and/or the primary users date of birth, this won't be possible.
除非框架或您的应用程序可以访问日历和/或主要用户的出生日期,否则这是不可能的。
If anything, I'd suggest looking at the Calendar (EventKit) to get this kind of information.
如果有的话,我建议查看日历(EventKit)以获取此类信息。
Obtaining it any other way would pretty much breach Apple Developer T's and C's
以任何其他方式获取它将几乎违反Apple Developer T和C's