BookmarkSubscribeRSS Feed

Configuring SAS Customer Intelligence 360 Events on an iOS Application

Started Friday by
Modified Friday by
Views 50

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.

 

01_jh_iosevents1.png

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):

 

02_jh_iosevents2.png

 

These event attributes are created in the Custom Attributes tab within SAS Customer Intelligence 360:

  

03_jh_iosevents3-1024x432.png

 

In the applications code, create a map with the name value pairs:

 

04_jh_iosevents4.png

 

Then when the SASCollector add app event is called, specify the name of the Map after data:

 

05_jh_iosevents5.png

 

To send multiple events, the addAppEvents() method is used. The events are created:

 

06_jh_iosevents6.png

 

They are then stored in array and passed to addAppEvents:

 

07_jh_iosevents7.png

 

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.

Version history
Last update:
Friday
Updated by:
Contributors

SAS Innovate 2025: Call for Content

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!

Submit your idea!

Free course: Data Literacy Essentials

Data Literacy is for all, even absolute beginners. Jump on board with this free e-learning  and boost your career prospects.

Get Started

Article Tags