https://github.com/webengage/analytics-ios-integration-webengage
WebEngage Wrapper for Segment's Analytics iOS SDK
https://github.com/webengage/analytics-ios-integration-webengage
framework retention sdk segment webengage
Last synced: 24 days ago
JSON representation
WebEngage Wrapper for Segment's Analytics iOS SDK
- Host: GitHub
- URL: https://github.com/webengage/analytics-ios-integration-webengage
- Owner: WebEngage
- License: mit
- Created: 2017-06-23T13:46:05.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2023-08-16T13:35:22.000Z (almost 3 years ago)
- Last Synced: 2025-02-14T23:45:38.198Z (over 1 year ago)
- Topics: framework, retention, sdk, segment, webengage
- Language: Objective-C
- Homepage:
- Size: 29.6 MB
- Stars: 1
- Watchers: 4
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# [Segment-Integration-iOS](https://docs.webengage.com/docs/segment)
[](http://cocoapods.org/pods/Segment-WebEngage)
[](http://cocoapods.org/pods/Segment-WebEngage)
[](https://cocoapods.org/pods/Segment-WebEngage)
[](https://cocoapods.org/pods/Segment-WebEngage)
WebEngage integration for Segment's [analytics-ios SDK](https://github.com/segmentio/analytics-ios).
Check out more information [here](https://docs.webengage.com/docs/segment).
## Installation
To install the Segment-WebEngage integration, simply add this line to your `Podfile`:
```ruby
# Avoid use_frameworks! declaration in your Podfile
pod "Segment-WebEngage"
```
## Usage
After adding the dependency, you must register the integration with our SDK. To do this, import the WebEngage integration in your `AppDelegate`:
```
#import
```
And add the following lines to your AppDelegate's application:didFinishLaunching:WithOptions: method
```
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
//Initialize Segment
SEGAnalyticsConfiguration *configuration = [SEGAnalyticsConfiguration configurationWithWriteKey:@"XXXXXXXXXXXXXXXXXXXXXXXXXXX"];
//Additional Segment Configuration
configuration.trackApplicationLifecycleEvents = NO; // Enable this to record certain application events automatically!
configuration.recordScreenViews = NO; // Enable this to record screen views automatically!
//Register WebEngage Integration With Segment
[configuration use:[WEGSegmentIntegrationFactory instanceWithApplication:application launchOptions:launchOptions]];
[SEGAnalytics setupWithConfiguration:configuration];
return YES;
}
```
## Push Notifications
Please follow our [iOS Push Notification Documentation](https://docs.webengage.com/docs/ios-push-messaging)
## In-App Notifications
No further action is required to integrate in-app messages.
## Advanced
For advanced integration options such as InApp callback and manual push registration, please visit the [Advanced Section Documentation](https://docs.webengage.com/docs/ios-advanced). You can find the similar flavours of methods in Segment-WebEngage's `WEGSegmentIntegrationFactory` class
## Sample App
WebEngage has created a sample iOS application that integrates WebEngage via Segment. Check it out in this Repository's Example folder.
For more details check out documentation [here](https://docs.webengage.com/docs/segment).