Setup the demo

At the end of this step-by-step setup process, you will have:

1. Install the FollowAnalytics Salesforce app

1.1. Deploy the app on Salesforce

You should use a developer instance. If you need one, sign up for it here.

Install the FollowAnalytics package by clicking the link below. If you use multiple Salesforce orgs, make sure you select the developer instance to connect this demo.

You can leave options to their default values.

1.2. Create an OAuth app for FollowAnalytics to send data

FollowAnalytics requires you to declare an OAuth app on Salesforce, which will allow the sending of data through Salesforce APIs.

In your Salesforce demo instance:

  1. Click on your name in the Salesforce page top-right corner, then Setup
  2. In the menu to the left, under App Setup, select Create > Apps
  3. In Connected Apps, click on New
  4. Give an app and API name, for instance "FollowAnalytics", and put your contact e-mail.
  5. Click on Enable OAuth Settings, enter any URL (for instance https://login.salesforce.com/services/oauth2/callback), and give the Full Access (full) OAuth scope.

    The form should look like this:
  6. Click Save

You should be redirected to the app you just created. In this screen, copy the Consumer Key and Consumer Secret and keep them at hand for the next step.

2. Deploy the Heroku app and configure it

2.1. Deploy

Deploy the demo web app to a new heroku app by clicking the Deploy button below.

Deploy

This app will automatically bundle the FollowAnalytics add-on, thus creating an account on it for you. Even though the add-on test plan is free, you will need to have configured a credit card on your Heroku account to deploy this app.

When deploying the code, you will be asked for 5 values, as config variables:

You can leave the name blank, or give it one you choose. The name generated to the app will determine the URL to access your app once it's deployed: http://APPNAME.herokuapp.com

For slightly faster page loading, you can choose to deploy the app in Europe instead of the default United States option.

Once you click Deploy, the app is set up. You can now access your FollowAnalytics account by going to your app in your Heroku console and clicking on the FollowAnalytics addon.

2.2. Configure FollowAnalytics for the demo

The Heroku app you just deployed is autonomous. You only need to click one button to get the required objects created in FollowAnalytics.

Go to http://YOURAPPNAME.herokuapp.com or click on the Open App button located in the top-right corner of the Heroku app detail page in your Heroku Dashboard.

Here, click on the big Create app now button. When the page reloads, you get a package name and API key that you will use in the next step.

If you wish to be able to send push notifications from this page, you will need to provide a valid push certificate matching the package name given in the Mobile app details table.

To generate your push certificate, please follow the procedure described in our developer portal

3. Download and build the iOS mobile app

To enable push notifications on the test app, you will need an Apple Developer Account, which costs 99USD per year. Without it, you can still use the app on a device and get that data into Salesforce.

You're all set!

You can now proceed to the Walkthrough section of this site to see how to use what you just set up.