Closed cbowns closed 9 years ago
Hmm. Sorry about that @cbowns.
Taking a look, it appears that the ARAnalyticsShouldFire
key/value pair should be inside the ARAnalyticsDetails
. This lets you have per-event firing filtering behaviour. In the code you've posted above, ARAnalytics doesn't see the should fire block and assumes there isn't one.
Please let us know if this helps.
(Side note: this is actually a weakness of the DSL – you are not the first person to have this issue. In fact, I made the mistake myself a few weeks ago. @kylef has suggested moving away from arrays/dictionaries. Maybe we can use Swift? Open to suggestions.)
Oh, that makes sense! I simply didn't read the DSL examples that closely, and Xcode's default formatting made it difficult to see the scope of what I'd added. That fixed it, thanks.
:+1:
I'm using the aspect-oriented DSL to setup my analytics events, and had included a snippet exactly like the one in https://github.com/orta/ARAnalytics#aspect-oriented-dsl to opt any of my
UIViewController
subclasses which lacked atitle
property out of mytitle
-oriented tracking.However, I'm getting runtime crashes on
title
being nil, and inARDSL.m
'sar_shouldFireForInstance
(this code), thedictionary
being passed in lacks adictionary[ARAnalyticsShouldFire]
value:I was under the impression (perhaps wrongly) that this configuration would apply to all subclasses of
UIViewController
. (This is taken more or less verbatim from the readme for ARAnalytics.)