Setting user Gender & Age in Google Analytics iOS SDK v3

谁说胖子不能爱 提交于 2019-12-23 09:58:38

问题


Using the latest Google Analytics SDK (v3.0.6), and I can't find anywhere in documentation, searching through the header files or web search how to set the Age and Gender of the current user for GA tracking.

I'm using Custom Dimensions successfully for other things, and could use two of those for Age and Gender, but it doesn't seem like what they're intended for when there's built-in "Dimensions" for Age and Gender already.

I imagine that it would be something like this:

[tracker set:[GAIFields customDimensionForIndex:4] value:@"Gender"];

But doesn't seem to be anything in GAIFields.h or GAIDictionaryBuilder.h to set the built-in dimensions.

来源:https://stackoverflow.com/questions/23358000/setting-user-gender-age-in-google-analytics-ios-sdk-v3

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!