Menu
Amazon Mobile Analytics
User Guide

Adding an App to Mobile Analytics

To use Mobile Analytics with an app, you must use the console to add the app to the Mobile Analytics service. The steps to add your first app to Mobile Analytics are different from the steps to add additional apps.

If You Have No Existing Identity Pools

Use the following procedure if you are adding your first app in the Mobile Analytics console but do not yet have any Cognito identity pools defined.

To add an app for the first time

  1. Open the Amazon Mobile Analytics console at https://console.aws.amazon.com/mobileanalytics/home.

  2. Choose Get Started.

  3. In App Name, type a name for your app, and then choose Create App.

  4. In the IAM role creation wizard, choose Allow to generate an IAM role for the Cognito identity pool.

  5. In the displayed integration steps, choose the tab that corresponds to the platform targeted by your app. The Cognito identity pool ID generated by the wizard in the previous step appears in the sample code. You can easily copy and paste the code into your app.

Adding Additional Apps with the Default Cognito Identity Pool

Use the following procedure to add a new app if you have already added your first app and have a default Cognito identity pool.

To add an app if you have existing apps

  1. Open the Amazon Mobile Analytics console at https://console.aws.amazon.com/mobileanalytics/home.

  2. Click the Settings icon.

  3. In Manage Apps, choose Add an App.

  4. In App Name, type a name for your app, and then choose Create App to add the app using your default identity pool. This name will appear in the console.

  5. Choose the tab that corresponds to the platform targeted by your app for details about how to integrate Mobile Analytics. The ID for your default identity pool appears in the sample code. You can easily copy and paste the code into your app. \

If You Have Existing Identity Pools but No Default Cognito Identity Pool

Use this procedure to add a new app if you used Mobile Analytics before July 6, 2015 or have an Cognito identity pool but have not selected a default :.

To add an app if you have existing identity pools, but no default identity pool

  1. Open the Amazon Mobile Analytics console at https://console.aws.amazon.com/mobileanalytics/home.

  2. Click the Settings icon.

  3. In Manage Apps, choose Add an App.

  4. In App Name, type a name for your app. This name will appear in the console.

  5. To use an existing identity pool, choose it from the Amazon Cognito Identity Pool drop-down list. To create a new identity pool, choose Create a new Amazon Cognito Identity Pool

  6. Choose Create App.

  7. If you chose to create a new identity pool, the IAM role creation wizard will appear. Choose Allow to generate an IAM role for the Cognito identity pool.

  8. Choose the tab for each platform targeted by your app for instructions and sample code. The ID for the Cognito identity pool you created or chose appears in the sample code. You can easily copy and paste the code into your app.

If You Have Existing Identity Pools and a Default Cognito Identity Pool

Use this procedure if you are Amazon Cognito user who would like to start using Mobile Analytics.

To add an app if you have existing identity pools and a default identity pool

  1. Open the Amazon Mobile Analytics console at https://console.aws.amazon.com/mobileanalytics/home.

  2. Click the Settings icon.

  3. In Manage Apps, choose Add an App.

  4. In App Name, type a name for your app, and then choose Create App. This name will appear in the console.

  5. Choose the tab for each platform targeted by your app for instructions and sample code to use. The ID for your default Cognito identity pool is automatically associated with the new app, but you can select an other identity pools from the drop-down list. The sample code contains the values appropriate to your app. You can easily copy and paste the values into your app's source code.