Segment-Wootric 0.4.0

Segment-Wootric 0.4.0

测试已测试
语言语言 Obj-CObjective C
许可证 MIT
发布最新发布2022年8月

Lukasz CicheckipJes2Diego SerranoDiego Serrano维护。



 
依赖
Analytics~> 4.1.6
WootricSDK~> 0.21.1
 

  • 作者:
  • Wootric

为analytics-ios提供Wootric集成。

安装

Segment-Wootric通过CocoaPods提供。要安装它,只需将以下行添加到您的Podfile中。

pod "Segment-Wootric"

使用

(建议首先阅读WootricSDK文档。)

首先,您需要在Segment仪表板中为Wootric集成提供账户令牌和clientID的值,然后导入Segment-Wootric。

#import <Segment-Wootric/SegmentWootric.h>

现在您可以使用Wootric集成初始化Analytics

SEGAnalyticsConfiguration *config = [SEGAnalyticsConfiguration configurationWithWriteKey:@"YOUR_WRITE_KEY"];
WTRWootricIntegrationFactory *wootricFactory = [WTRWootricIntegrationFactory instance];
[config use:wootricFactory];
[SEGAnalytics setupWithConfiguration:config];

Wootric集成响应identify调用,有关更多信息,请访问Segment identify方法文档。在identify调用中,traits字典在WootricSDK中设置为endUserProperties,除了键emailcreatedAt分别设置为endUserEmailendUserCreatedAt

对于自定义配置,您可以使用SEGWootric类实例,获取它,请调用

[WTRWootricIntegration wootric];

有关所有可用方法(对于SEGWootric是实例方法而不是类方法),请参阅WootricSDK文档

最后,要显示调查

[WTRWootricIntegration showSurveyInViewController:<VIEW_CONTROLLER>];

许可证

The MIT License (MIT)

Copyright (c) 2015 Wootric

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.