Giter Site home page Giter Site logo

rudderlabs / rudder-integration-amplitude-ios Goto Github PK

View Code? Open in Web Editor NEW
0.0 6.0 0.0 134 KB

RudderStack's native iOS integration with Amplitude.

Home Page: https://rudderstack.com

License: Other

Ruby 7.65% Objective-C 89.58% C 0.34% Swift 2.43%
rudderstack amplitude ios

rudder-integration-amplitude-ios's Introduction

What is RudderStack?

RudderStack is a customer data pipeline tool for collecting, routing and processing data from your websites, apps, cloud tools, and data warehouse.

More information on RudderStack can be found here.

Integrating Amplitude with RudderStack's iOS SDK

  1. Add Amplitude as a destination in the RudderStack dashboard and define all the fields.

  2. Rudder-Amplitude is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod 'Rudder-Amplitude'

Initialize RudderClient

Put this code in your AppDelegate.m file under the method didFinishLaunchingWithOptions:

RSConfigBuilder *builder = [[RSConfigBuilder alloc] init];
[builder withDataPlaneUrl:DATA_PLANE_URL];
[builder withFactory:[RudderAmplitudeFactory instance]];
[RSClient getInstance:WRITE_KEY config:[builder build]];

Add the below logic just after initalizing RudderClient in AppDelegate.m if you would like to send IDFA of iOS device as device id to Amplitude

[Amplitude instance].adSupportBlock = ^{
return [[ASIdentifierManager sharedManager] advertisingIdentifier];
};

Then, add the below logic if you would like to track location (latitude, longitude)

[Amplitude instance].locationInfoBlock = ^{
        return @{
                  @"lat" : @37.7,
                  @"lng" : @122.4
                };
};

Send Events

Follow the steps from RudderStack iOS SDK.

Contact Us

If you come across any issues while configuring or using this integration, feel free to start a conversation on our Slack channel. We will be happy to help you.

rudder-integration-amplitude-ios's People

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

rudder-integration-amplitude-ios's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.