Get started

This walkthrough will help you get started once you've followed the setup steps. You therefore need to have your Salesforce configured, your Heroku app running, and the mobile app compiled and running on a device.

1. Populate your Salesforce

To ensure you have contents to show, add a few contacts to your Salesforce. Make sure you provide e-mail addresses for these contacts, you will be using them later in the mobile app.

2. Generate mobile data

On your newly added contacts

Launch the mobile app, and login using the e-mail address of one of the contacts you created above. You don't need a real password, but this will tell the FollowAnalytics SDK who is using the app, and help it mark the usage data as coming from this user.

Log out by double-tapping on the profile pic at the top of the screen. Log in using another e-mail address previously added to Salesforce. Log out again and repeat that process for all or most of the accounts you created.

Once you've logged in with the last one, exit the app by pressing the device home button. This will trigger a sync with the FollowAnalytics servers.

For leads

If you launch the app again, and log in with an unkown e-mail address, the FollowAnalytics Salesforce connector will consider this session of usage as coming from an unknown customer or prospect. Since it doesn't match any Contact entry in Salesforce, it will be added to a new Lead.

You can repeat the process a few times to populate your Salesforce a bit more.

Please note that the sync of data from FollowAnalytics to Salesforce occurs twice a day. To verify that the data was properly received by FollowAnalytics, please refer to the Analysis section of this page, right below.

3. Analyze your usage data in FollowAnalytics

Go to your Heroku console, and click on the FollowAnalytics Add-On. This will get you to the FollowAnalytics Dashboard, from where you'll be able to analyze the usage data you just created. Please allow up to 15 minutes for initial usage data to show up, and make sure you select a period of analysis that covers today.

For instance:

4. Send a push message from your Heroku app

The Heroku example app that was deployed for this example will automatically retrieve the list of users known in FollowAnalytics, and allow to send them push notifications.

Simply go to the dedicated section on the Heroku app home page, check the boxes in front of the users you'd like to send a push message to, write a message (50 chars max), and click Send.

Push messages will be delivered to the devices where the selected users are currently logged-in. Delivery will only happen if the user accepted to receive push notifications (opted in) and if the app was built with the appropriate push certificate.

What else?

Feel free to fork the projects on Github to enhance them. You can also check out the FollowAnalytics Developer Portal to get our SDKs, and see the product API documentations.

If you have any question regarding FollowAnalytics or this project, please contact Antony at followanalytics.com.