WaveMaker Docs

WaveMaker Docs

  • Get started
  • Widgets
  • Mobile
  • How-to
  • Enterprise
  • Releases
  • Blog
  • Sign-in

›Mobile Integrations

Mobile Development

  • React Native or Cordova

React Native

  • Welcome
  • Features
  • Supported Widgets
  • Supported Variables
  • Test Run Preview
  • Debug Web Preview
  • Inspection Framework
  • Mobile Preview
  • Styles
  • Theme
  • Export as Zip
  • Build Installers
  • Debug APK
  • Debug IPA

Cordova

  • Building Hybrid Mobile Apps
  • Native Device Support
  • First Mobile App
  • Mobile Design

    • Mobile Page Design
    • Gesture Support
    • Mobile Tabbar
    • Mobile Navbar

    Mobile Installer

    • Test Run (Preview)
    • Debugging Mobile Apps
    • Test via Live Sync
    • Testing Hybrid Mobile Apps using WaveLens
    • Mobile Build - Android
    • Generating iOS and Android Distribution Certificates
    • Export Cordova zip
    • Mobile Build - Manual
    • Mobile Build - AppChef

    Mobile Integrations

    • Mobile Integrations - Amazon Mobile Analytics
    • Mobile Integrations - Amazon SNS
    • Using Push Notifications in Mobile Device
    • Invoking Web App APIs in Mobile Apps

    Offline Features

    • Offline Data Support
    • Implementation
    • Switching between Offline and Online Mode
Edit

Mobile Integrations - Amazon Mobile Analytics


Amazon Mobile Analytics(AMA) is a service provided under the aegis of the AWS Mobile Services. AMA gives complete details about the users, revenues, subscriptions, in-app behavior and more such details and allows you to view the charts in the mobile analytics console. In this post, we will let you know how to integrate your WaveMaker mobile application with Amazon Mobile Analytics service and view all the statistics regarding your mobile application.

For this post, we will track analytics of a user previously authenticated using Amazon Cognito. This will illustrate tracking the use case of "Daily Active Users". Note that it is possible to use Mobile Analytics without Cognito - but this means we cannot track Daily Active Users and other user-specific metrics.

Source code:

The code used in this example is available for download here.

Steps to follow

  1. Setup Amazon Cognito with WaveMaker as outlined in this post.
  2. Navigate to https://console.aws.amazon.com/mobileanalytics/home/#/overview?consoleState=wizard.createApp
  3. Create a new app as shown
  4. Setup your WaveMaker project as outlined in Amazon Cognito setup guide.
  5. Download Amazon Mobile Analytics JS from https://github.com/aws/aws-sdk-mobile-analytics-js and place it in the web apps directory
  6. Include the relevant files in index.html ( again, as done for Amazon Cognito)
  7. It is now possible to use the Amazon JS SDK and make Mobile Analytics API calls to push analytics data to the dashboard.
  8. Run the app and then navigate to the Amazon Mobile Analytics console - you should see the analytics getting captured Note that it may take Amazon up to 60 minutes for its data to start showing up
  9. Refer to the JS API documentation for things like custom events and sessions: https://github.com/aws/aws-sdk-mobile-analytics-js/blob/master/README.md#additional-options
  10. Fairly detailed analytics reports are available if the API is used properly

Conclusion

Using the approach outlined above, any WaveMaker application can obtain analytics data for an application and pushed it via API calls to the Amazon Mobile Analytics dashboard.

See Also

Amazon SNS
Amazon Mobile Analytics
Push Notifications
Invoking Web App APIs in Mobile Apps

Last updated on 5/18/2020 by Naresh Ravulapalli
← Mobile Build - AppChefMobile Integrations - Amazon SNS →
  • Source code:
  • Steps to follow
  • Conclusion
  • See Also
WaveMaker
  • PRICING
  • PARTNERS
  • CUSTOMERS
  • ABOUT US
  • CONTACT US
Terms of Use | Copyright © 2013-2023 WaveMaker, Inc. All rights reserved.