How to track exceptions? (iOS/AND)

LCasadiego
Visitor
LCasadiego

I see there are some attributes defined such as "exception_name", "exception_trace" but haven't been able to get this info to show. I've induced exceptions like dividing by zero but I don't see these attributes in the ones that arrive on Live Events. Am I missing something? Should I be making some setup or what? So far I've just done what the integration tutorial says and some data does arrive.

4 REPLIES 4
Highlighted

How to track exceptions? (iOS/AND)

meng_lim
Employee Emeritus
meng_lim

Hi @LCasadiego,

 

Here is a list of the data-layer variables for Anroid (https://community.tealiumiq.com/t5/Tealium-for-Android/Data-Layer-for-Mobile/ta-p/16851) and iOS (https://community.tealiumiq.com/t5/Tealium-for-iOS/Data-Layer-for-Mobile/ta-p/16329).  "exception_name" and "exception_trace" are not standard variable names.

 

You can still define these if you'd like.  To track exceptions, I recommend using a try-catch statement.  In the code block of the catch statement, you would code a Tealium trackEvent call and pass exception value.

 

Android: https://community.tealiumiq.com/t5/Tealium-for-Android/Adding-Tealium-to-Your-Android-App/ta-p/16846...

iOS: https://community.tealiumiq.com/t5/Tealium-for-iOS/Adding-Tealium-to-Your-iOS-App/ta-p/16327#track_e...

 

How to track exceptions? (iOS/AND)

LCasadiego
Visitor
LCasadiego

Hi @meng_lim,

 

I thought these were standard because they came with the mobile profile when I created it, along with the rest of the UDO Variables. Can you confirm me that Tealium doesn't track automatically crashes and the traces of them on  either Android nor iOS? 

 

Thank you for your help and time.

How to track exceptions? (iOS/AND)

meng_lim
Employee Emeritus
meng_lim

Hi @LCasadiego,

 

The Tealium Mobile SDK library does not do any sort of auto tracking of exceptions nor for crashes.  This can usually be achieved with such partners as New Relic or Crashlytics.

How to track exceptions? (iOS/AND)

LCasadiego
Visitor
LCasadiego
Thank you @meng_lim