gzog / analytics-issues

Automatically exported from code.google.com/p/analytics-issues
0 stars 0 forks source link

Exception when setting NonInteraction with the Google Analytics iOS SDK #844

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Name of affected component: Enhanced Ecommerce Tracking

Name of related library and version, if applicable (e.g. Java, Python,
HTTP, Objective-C, etc.): iOS SDK, Google Analytics 3.14.0 via Cocoapods

Issue summary:
When i try to set the kGAINonInteraction attribute, the app crashes with an 
exception.

Steps to reproduce issue:
1. Add the newest version of the Google Analytics Cocoapod to your project.
2. Configure as described in 
https://developers.google.com/analytics/devguides/collection/ios/v3/
3. Set the kGAINonInteraction as described in 
https://developers.google.com/analytics/devguides/collection/ios/v3/enhanced-eco
mmerce
4. Compile
5. Run
6. Experience the crash

Expected output:
It doesn't crash.

Actual results:
It crashes.

Notes:
Here's the relevant from the log:
*** Terminating app due to uncaught exception 'NSUnknownKeyException', reason: 
'[<GAIDictionaryBuilder 0x13ddd8540> setValue:forUndefinedKey:]: this class is 
not key value coding-compliant for the key &ni.'

Original issue reported on code.google.com by carg...@gmail.com on 5 Jan 2016 at 8:26