In an earlier post I provided step by step instructions on how mobile app developers can install and initialize the mobile SDK on iOS applications. The purpose of this post is to provide instructions on how to configure mobile events on an iOS application. Future posts will discuss topics such as how to set up mobile messages, and how to handle navigation within a mobile application.
Mobile events can be used to capture specific information about how mobile app users interact with app content. Events can then be used to trigger a task, set a metric, or define a segment.
First, create the new event in SAS Customer Intelligence 360. The mobile event key that is entered in SAS Customer Intelligence 360 will be the same as the event ID that is entered into the applications code.
Select any image to see a larger version.
Mobile users: To view the images, select the "Full" version at the bottom of the page.
When defining an event, you can also create an optional event attribute map so that you can collect metadata associated with the event. To send the event without the attribute map use the following (Note that the event key created above is the same as what is entered below):
These event attributes are created in the Custom Attributes tab within SAS Customer Intelligence 360:
In the applications code, create a map with the name value pairs:
Then when the SASCollector add app event is called, specify the name of the Map after data:
To send multiple events, the addAppEvents() method is used. The events are created:
They are then stored in array and passed to addAppEvents:
There are specific event types such as Add to Cart Events, Cart Events, and Internal Search Events. For more details and instructions on how to handle these specific event types see SAS Help Center: Working with Events. The example in this post uses Objective-C. For examples using Swift see SAS Help Center: Working with Events. Additionally, more details can be found in the SAS Customer Intelligence 360 Mobile SDK course included in the SAS Customer Intelligence Learning subscription.
Find more articles from SAS Global Enablement and Learning here.
Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 16. Read more here about why you should contribute and what is in it for you!
Data Literacy is for all, even absolute beginners. Jump on board with this free e-learning and boost your career prospects.