User Interface Editor
You can edit your app's user interface (UI), even create new Events, using the Leanplum Visual Editor. To do so, you'll need to add the following dependency to your
Be sure to include the package in your AppDelegate.
Then, add a single line of code before
[[LeanplumUIEditor sharedEditor] allowInterfaceEditing];
Older versions of our SDK (< 2.0.0) included the UI Editor in the Leanplum package. If you are using one of these versions, you only need to call
[Leanplum start]to activate the UI Editor.
Then, run your app in development mode, and click the UI tab in the Dashboard.
To create a new interface click the New button.
- Navigate and scroll to any screen in your app you would like to change
- Click any element in the Editor to start editing.
- Turn your device sideways to see landscape view.
Once you select an element, like a button, you can edit its properties on the right side of the Editor.
To publish your interface, click Save & Exit.
This will load the saved interface to the UI Dashboard, where you can target the new interface to select users or targets, or A/B test it.
To publish the interface, click the circle next to your interface name and click Active.
Create a new event
To create a new event, run your device in development mode. Then, from the Events tab, click Create Visual Event.
Follow the instructions to select a view or element to attach an event.
Give your event a name and click Save & Exit
View results for an event
You can track the occurences of this event in Analytics.
- In the sidebar, click Developer Activity.
- In the Daily Breakdown section, click the + button.
- Under Events select the one you created and determine which metrics you wish to track.
- To ensure your event tracking is working, run your app in developer mode and perform the event that you chose in step 4. 5. You should see the value on your tile increase to 1.
If you wish to track the metric on release builds, please wait about 2 hours and follow steps 2 and 3 for the "User Activity" tab on the sidebar.