【问题标题】:Is it possible to set WebTrends DCS ID dynamically in Swift project是否可以在 Swift 项目中动态设置 WebTrends DCS ID
【发布时间】:2015-12-04 13:13:42
【问题描述】:

我正在开发 iOS 应用程序。我需要在我的 iOS 应用程序中实现 WebTrends 分析。 我可以在从服务器加载数据后动态设置 WT_DCSID。因为我从服务器获得的 WT_DCSID 不是静态的。 我能不能做。请提出建议。

【问题讨论】:

    标签: iphone swift analytics ios9.1 webtrends


    【解决方案1】:

    请看advance configuration link
    根据此文档,您将使用以下内容:

    WTDataCollector.sharedCollector().setValue("dcsxxxxxxxxxxxxxxxxxxxxxxxx_xxxx", kWTConfigDCSID, persists:true)

    您仍然需要在 webtrends.plist 中设置默认的 wt_dc_dcsid,因为这是 Webtrends 加载其配置时读取的内容。您可以在此之后以编程方式简单地覆盖它。

    谢谢,

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2011-05-29
      • 2023-03-21
      • 2014-12-18
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多