Objective-C


  1. Download our SDK for iOS from your Attributo Admin Panel.
  2. Extract downloaded zip with SDK.
  3. Add "Attributo.a", "Attributo.h" and "AttributoEvent.h" to your project. 
  4. Select "Copy items if needed" and select correct target.
  5. Import "Attributo.h" file where you want to call Attributo methods.
  6. Call [Attributo initializeWithAttributoAppId:@"YOUR_APP_ID" attributoSecretKey:@"YOUR_SECRET_KEY"] method for init right after your app started. You can find your App ID and Secret Key on your Attributo admin panel in section App Settings.
  7. Call [Attributo measureSession] method for Session tracking right after your app started.
  8. Call [Attributo measureEventName:@"YOUR_EVENT"] method anywhere your event is completed.



Swift


  1. Download our SDK for iOS [HERE]
  2. Extract downloaded zip with SDK
  3. Add "Attributo.a", "Attributo.h" and "AttributoEvent.h" to your project. 
  4. Select "Copy items if needed" and select correct target.
  5. Add #import "Attributo.h" line into your ObjectiveC Bridging Header file.
  6. Call Attributo.initialize( withAttributoAppId"YOUR_APP_ID"attributoSecretKey:"YOUR_SECRET_KEY") method for init right after your app started. You can find your App ID and Secret Key on your Attributo admin panel in section App Settings.
  7. Call Attributo.measureSession() method for Session tracking right after your app started.
  8. Call Attributo.measureEventName("YOUR_EVENT") method anywhere your event is completed.