GithubHelp home page GithubHelp logo

davbeck / countly-sdk-ios Goto Github PK

View Code? Open in Web Editor NEW

This project forked from countly/countly-sdk-ios

1.0 2.0 0.0 250 KB

Countly Mobile Analytics - iOS SDK

Home Page: http://count.ly

License: MIT License

Objective-C 94.14% Ruby 5.86%

countly-sdk-ios's Introduction

##What's Countly?

Countly is an innovative, real-time, open source mobile analytics application. It collects data from mobile devices, and visualizes this information to analyze mobile application usage and end-user behavior. There are two parts of Countly: the server that collects and analyzes data, and mobile SDK that sends this data. Both parts are open source with different licensing terms.

This repository includes the SDK for iOS and Mac OS X.

##Installing the SDK

Countly iOS SDK includes necessary tools to track your application. In order to integrate SDK to your application, follow these steps.

  1. Download Countly iOS SDK (or clone it in your project as a git submodule).
  2. Add these files to your project under Xcode: Countly.h Countly.m Countly_OpenUDID.h Countly_OpenUDID.m CountlyDB.h CountlyDB.m and Countly.xcdatamodeld
  3. For an OS X target, skip to step 11. For iOS, continue with step 4.
  4. Select your project in the Project Navigator
  5. Select the Build Phases tab
  6. Open Link Binaries With Libraries expander
  7. Click the + button
  8. Select CoreTelephony.framework, select Optional (instead of Required)
  9. Select CoreData.framework
  10. (optional) Drag and drop the added framework to the Frameworks group
  11. In your application delegate, import Countly.h and inside application:didFinishLaunchingWithOptions: add the line; [[Countly sharedInstance] start:@"YOUR_APP_KEY" withHost:@"https://YOUR_API_HOST.com"]; at the beginning of the function.

Note: if you use Countly Cloud, you must set withHost parameter to https://cloud.count.ly for step 11. Or you can use [[Countly sharedInstance] startOnCloudWithAppKey:@"YOUR_APP_KEY"]; directly.

Note: Make sure you use App Key (found under Management -> Applications) and not API Key or App ID. Entering API Key or App ID will not work.

It should finally look like this:

#import "Countly.h"  // newly added line
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
[[Countly sharedInstance] start:@"TYPE_HERE_YOUR_APP_KEY_GENERATED_IN_COUNTLY_ADMIN_DASHBOARD" withHost:@"http://TYPE_HERE_URL_WHERE_API_IS_HOSTED"]; // newly added line
// your code
}

Using ARC

If your project uses automatic reference counting (ARC), you should disable it for the sources Countly.m, Countly_OpenUDID.m and CountlyDB.m:

  1. Select your project
  2. Select the Build Phases tab
  3. Open Compile Sources tab
  4. Double click Countly.m, Countly_OpenUDID.m and CountlyDB.m and add -fno-objc-arc flag

Note: Before upgrading to a new SDK, do not forget to remove the existing, older SDK from your project.

Using CocoaPods

Countly iOS SDK benefits from Cocoapods. For more information, go to Countly CocoaPods Github directory

Other resources

Check Countly Server source code here:

There are also other Countly SDK repositories below:

##How can I help you with your efforts? Glad you asked. We need ideas, feedbacks and constructive comments. All your suggestions will be taken care with upmost importance.

We are on Twitter and Facebook if you would like to keep up with our fast progress!

For community support page, see http://support.count.ly.

countly-sdk-ios's People

Contributors

atilimcetin avatar davbeck avatar derekmoorecountly avatar erkanyildiz avatar gorkem-cetin avatar hiltonc avatar nesimtunc avatar osoner avatar pronebird avatar tternes avatar undancer avatar

Stargazers

 avatar

Watchers

 avatar  avatar

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.